summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/highlight.lua
AgeCommit message (Collapse)Author
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
2020-08-09Lua: highlight function nameSantos Gallegos
2020-07-27Parsers: add reStructuredTextSantos Gallegos
2020-07-23Rename attribute to annotationAkin Sowemimo
2020-07-23Add attribute to the highlight mapAkin Sowemimo
2020-07-16Refactor locals.lua:Stephan Seitz
- shared query group stuff -> query.lua - local-specific stuff from ts_utils -> locals.lua
2020-07-16Refactor: Add parsers.get_buf_langStephan Seitz
2020-07-13Fix #167: Add custom_captures config key to set highlights for custom queriesStephan Seitz
2020-06-26highlight: use custom highlight groupsThomas Vigouroux
2020-06-21Merge pull request #90 from kyazdani42/fix/parser-names-as-filetypesKiyan Yazdani
refacto/fix: filetype / parser name distinction
2020-06-21Updated python highlightsJakub Łuczyński
* allow for digits in constant names * removed redundant/conflicting rules * added missing hlmap * fixed escape_sequence * more explicit @constructor assignment * added rules for function decoration identifiers
2020-06-20refactor: parser list and lang->ft/ft->langkiyan42
- move parser list in `parsers.lua` - most `ft` variable where changed to `lang`, `ft` is only used on autocmd binding, and lang is used for everything else. Functions have been defined to make the switch between `ft` and `lang`
2020-05-17Introduce `@include`Stephan Seitz