summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/highlight.lua
AgeCommit message (Collapse)Author
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
2020-05-12refacto/feat: better handling of parser updateskiyan42
features: - node_movement is moving between scopes. - add selection initialization from normal mode - add a decremental selection improvements: - attach to buffer to run tree parsing on change - run state update on CursorMoved - the buffer state is: ``` { cursor_pos = { row=row, col=col }, current_node = node_under_cursor, selection = { range = nil, -- activates when starting a selection nodes = {} -- filling up when starting an incremental selection }, parser = parser, -- parser for current buffer } ``` - refacto all the modules reliant on parsing the tree, update the current nodes, get the current nodes... fixes: - fix has_parser to look for .so libraries - fix should select the whole file when selection root in selection
2020-05-07feat: support suggested highlightsThomas Vigouroux
2020-04-24feat/refacto: improve configurationskiyan42
- You should now get the configs through functions - Configs for languages are now inside a local object called parsers - You can get the parser installation configurations with `get_parser_configs` - A new object has been initialized inside configs to specify module config (called config). - Provide functions to enable/disable a module on one buffer - Provide functions to enable/disable a module on all buffers, and if filetype is specified, for specific filetype - Provide function to determine if module is activated for a specified filetype