summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/highlight.lua
AgeCommit message (Collapse)Author
2022-10-31feat(emmy): add emmylua annotationsLewis Russell
2022-10-16feat!: remove obsolete `TS*` highlight groupsChristian Clason
2022-10-08fix: don't overwrite highlights when definingThomas Vigouroux
2022-10-02fix(test): update tests to Nvim 0.8Christian Clason
2022-09-19fix(highlight): respect g:skip_ts_default_groups on ColorScheme autocmdNull Chilly
2022-09-09fix(highlight): ensure link captures function existsAkin Sowemimo
before attempting to call it fixes #3465
2022-08-31chore(highlight): re-add earlier callAkin Sowemimo
2022-08-31fix(highlight): ensure links are rebuilt on colorscheme changeAkin Sowemimo
2022-08-26fixup: facepalmChristian Clason
2022-08-26fix(hl_map): adapt to upstream changes on masterChristian Clason
https://github.com/neovim/neovim/pull/19931 adds direct support for highlighting capture groups (with fallback), obviating the need for `vim.treesitter.highlighter.hl_map`. Instead of `hl_map["@keyword"] = "TSKeyword"` users can simply `hi link TSKeyword @keyword` Check for the existence of `hl_map` and either use the former or the latter.
2022-08-03Added function/method call highlight groupslfenzo
2022-07-30feat(highlight): re-apply default highlights on colorscheme changesJohn Drouhard
If the plugin is loaded after a colorscheme is set that defines any of these highlight groups, the default won't be applied. Subsequent "highlight clear" commands (common when switching colorschemes) will then clear any of those highlights, but these defaults never have another opportunity to be initialized. Effectively, if you load neovim with a colorscheme that has definitions for some of these highlight groups, then load treesitter, then switch colorschemes, many of these default links will be absent resulting in colors that do not appear the same as if that colorscheme had been used at startup. Hooking the ColorScheme event with an autocmd that just reapplies these defaults gives every colorscheme switch the opportunity to get the defaults for non-explicitly-defined groups.
2022-03-30Add capture groups for remaining builtin highlight groupsGregory Anders
Some builtin highlight groups (see `:h group-name`) do not yet have associated capture groups, so add them.
2022-02-19refacto: expose a function to set custom capture for the higlighterkiyan
BREAKING: deprecate custom_captures from highlight config. This allows plugin authors to extend the map. It also avoids settings user configuration specific values during the highlighter initialization (SOC). Not sure how much value this brings, and might potentially break a lot of people configurations. This is questionable.
2022-02-06chore: expose start and stop highlighterkiyan
Decompose highlighter module in small functions to allow exporting a start and stop functions without the syntax change. Also fix linter issues in configs.lua
2021-07-20fix: make additional_vim_regex_highlighting actually accept a listSimon Hauser
2021-07-14add @tag.attribute for html like attributeslmlorca
2021-07-11Highlights: define string.special (#1551)Santos Gallegos
* Highlights: define string.special This was in our CONTRIBUTING.md file, but wasn't defined. Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/1405 * Use string.escape
2021-07-04Use stylua for autoformat code (#1480)Santos Gallegos
2021-07-04feat(keywords) merge return and yield into keyword.return groupantonk52
2021-07-04feat(keywords) add keyword.return & keyword.yieldantonk52
2021-06-22fix typo: Enviroment -> Environmentkmarius
2021-04-24highlight: add 'comment' to hlmapMunif Tanjim
2021-03-30Add text.reference and text.environmentStephan Seitz
2021-03-30latex: add TSMath that behaves like vimtex math highlightingStephan Seitz
2021-03-18feat: Allow tables for additional_vim_regex_highlightingStephan Seitz
2021-03-18feat: Allow to configure to use syntax and tree-sitter togetherStephan Seitz
2021-03-12Add comment parser to highlight comment tags (#893)Santos Gallegos
Closes #236
2021-03-04[highlights] Add TSSymbol highlight groupDennis B
Addresses issue #892 Ruby and Dart literal symbols will now be highlighted by the new TSSymbol highlight group, which itself will, by default, link to the Vim Identifier highlight group. Vim theme authors can then set their TSSymbol colors. Symbol highlighting can apply to a number of languages as noted in the following Wikipedia page: https://en.wikipedia.org/wiki/Symbol_(programming) Not just for Ruby and Dart.
2021-02-11HTML: improve highlights & injectionsSantos Gallegos
2021-01-14fix(highlight): fix detach functionThomas Vigouroux
Fixes #798
2021-01-14fix(highlight): remove unneeded query managementThomas Vigouroux
2020-12-21Remove deprecated highlightsdelphinus
2020-12-07typorockerBOO
2020-12-07cleanup: Add additional contextrockerBOO
2020-12-07docs: Update docs for missing groups, re-order alphabeticallyrockerBOO
2020-11-23fix: update interface following languagetree merge (#687)Thomas Vigouroux
2020-10-19feat(languagetree): implement language treeThomas Vigouroux
Allow the LanguageTree to be used as an option for highlighting. Co-authored-by: Santos Gallegos <stsewd@protonmail.com> Co-authored-by: Yazdani Kiyan <yazdani.kiyan@protonmail.com>
2020-10-13fix(highlights): use new highlighter interfaceThomas Vigouroux
2020-10-12highlight: use new highlighter interfaceThomas Vigouroux
2020-10-10fix(highlights): Add TSNamespace highlightStephan Seitz
Start adding highlights for - C++ - Rust (including other scoped_identifier/scoped_type_identifier fixes) - JS (only namespace_import) Addresses #516
2020-09-19Add @keyword.operator for operators that are English words and add ↵Stephan Seitz
@exception for Java/JS
2020-09-18Re-add attribute highlightAkin Sowemimo
2020-09-18Add TSTag and TSTagDelimiter groupsTravonteD
These groups will be added for use with xml-like tags such as html and jsx.
2020-09-15add TSNonekiyan42
2020-08-22fix(modules): do not reattach if already attachedSteven Sojka
2020-08-16feat(highlights): add is predicateSteven Sojka
2020-08-14fix: refactor after upstream refactorThomas Vigouroux
2020-08-10fix(highlight): Use TSParameterThomas Vigouroux
2020-08-09Change capture groups and add variable highlightsAkin Sowemimo