Skip to content
This repository was archived by the owner on Apr 3, 2026. It is now read-only.

Commit 42ab95d

Browse files
clasonChristian Clason
authored andcommitted
feat!: remove obsolete TS* highlight groups
1 parent 4cccb6f commit 42ab95d

8 files changed

Lines changed: 25 additions & 572 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ For more detailed information on setting these up, see ["Advanced setup"](#advan
6363

6464
## Requirements
6565

66-
- **Neovim 0.7.0 or later** built with **tree-sitter 0.20.3+** (latest [nightly](https://github.com/neovim/neovim#install-from-source) recommended)
66+
- **Neovim 0.8.0 or later** built with **tree-sitter 0.20.3+** (latest [nightly](https://github.com/neovim/neovim#install-from-source) recommended)
6767
- `tar` and `curl` in your path (or alternatively `git`)
6868
- A C compiler in your path and libstdc++ installed ([Windows users please read this!](https://github.com/nvim-treesitter/nvim-treesitter/wiki/Windows-support)).
6969

doc/nvim-treesitter.txt

Lines changed: 0 additions & 301 deletions
Original file line numberDiff line numberDiff line change
@@ -476,307 +476,6 @@ Note: This is highly experimental, and folding can break on some types of
476476
edits. If you encounter such breakage, hiting `zx` should fix folding.
477477
In any case, feel free to open an issue with the reproducing steps.
478478

479-
==============================================================================
480-
HIGHLIGHTS *nvim-treesitter-highlights*
481-
482-
The following is a list of highlights groups, the syntactic elements they
483-
apply to, and some examples.
484-
485-
*hl-TSAttribute*
486-
`TSAttribute`
487-
Annotations that can be attached to the code to denote some kind of meta
488-
information. e.g. C++/Dart attributes.
489-
490-
*hl-TSBoolean*
491-
`TSBoolean`
492-
Boolean literals: `True` and `False` in Python.
493-
494-
*hl-TSCharacter*
495-
`TSCharacter`
496-
Character literals: `'a'` in C.
497-
498-
*hl-TSCharacterSpecial*
499-
`TSCharacterSpecial`
500-
Special characters.
501-
502-
*hl-TSComment*
503-
`TSComment`
504-
Line comments and block comments.
505-
506-
*hl-TSConditional*
507-
`TSConditional`
508-
Keywords related to conditionals: `if`, `when`, `cond`, etc.
509-
510-
*hl-TSConstant*
511-
`TSConstant`
512-
Constants identifiers. These might not be semantically constant.
513-
E.g. uppercase variables in Python.
514-
515-
*hl-TSConstBuiltin*
516-
`TSConstBuiltin`
517-
Built-in constant values: `nil` in Lua.
518-
519-
*hl-TSConstMacro*
520-
`TSConstMacro`
521-
Constants defined by macros: `NULL` in C.
522-
523-
*hl-TSConstructor*
524-
`TSConstructor`
525-
Constructor calls and definitions: `{}` in Lua, and Java constructors.
526-
527-
*hl-TSDebug*
528-
`TSDebug`
529-
Debugging statements.
530-
531-
*hl-TSDefine*
532-
`TSDefine`
533-
Preprocessor #define statements.
534-
535-
*hl-TSError*
536-
`TSError`
537-
Syntax/parser errors. This might highlight large sections of code while the
538-
user is typing still incomplete code, use a sensible highlight.
539-
540-
*hl-TSException*
541-
`TSException`
542-
Exception related keywords: `try`, `except`, `finally` in Python.
543-
544-
*hl-TSField*
545-
`TSField`
546-
Object and struct fields.
547-
548-
*hl-TSFloat*
549-
`TSFloat`
550-
Floating-point number literals.
551-
552-
*hl-TSFunction*
553-
`TSFunction`
554-
Function definitions.
555-
556-
*hl-TSFunctionCall*
557-
`TSFunctionCall`
558-
Function calls.
559-
560-
*hl-TSFuncBuiltin*
561-
`TSFuncBuiltin`
562-
Built-in functions: `print` in Lua.
563-
564-
*hl-TSFuncMacro*
565-
`TSFuncMacro`
566-
Macro defined functions (calls and definitions): each `macro_rules` in
567-
Rust.
568-
569-
*hl-TSInclude*
570-
`TSInclude`
571-
File or module inclusion keywords: `#include` in C, `use` or `extern crate` in
572-
Rust.
573-
574-
*hl-TSKeyword*
575-
`TSKeyword`
576-
Keywords that don't fit into other categories.
577-
578-
*hl-TSKeywordFunction*
579-
`TSKeywordFunction`
580-
Keywords used to define a function: `function` in Lua, `def` and `lambda` in
581-
Python.
582-
583-
*hl-TSKeywordOperator*
584-
`TSKeywordOperator`
585-
Unary and binary operators that are English words: `and`, `or` in Python;
586-
`sizeof` in C.
587-
588-
*hl-TSKeywordReturn*
589-
`TSKeywordReturn`
590-
Keywords like `return` and `yield`.
591-
592-
*hl-TSLabel*
593-
`TSLabel`
594-
GOTO labels: `label:` in C, and `::label::` in Lua.
595-
596-
*hl-TSMethod*
597-
`TSMethod`
598-
Method definitions.
599-
600-
*hl-TSMethodCall*
601-
`TSMethodCall`
602-
Method calls.
603-
604-
*hl-TSNamespace*
605-
`TSNamespace`
606-
Identifiers referring to modules and namespaces.
607-
608-
*hl-None*
609-
`TSNone`
610-
No highlighting (sets all highlight arguments to `NONE`). This group is used
611-
to clear certain ranges, for example, string interpolations. Don't change the
612-
values of this highlight group.
613-
614-
*hl-TSNumber*
615-
`TSNumber`
616-
Numeric literals that don't fit into other categories.
617-
618-
*hl-TSOperator*
619-
`TSOperator`
620-
Binary or unary operators: `+`, and also `->` and `*` in C.
621-
622-
*hl-TSParameter*
623-
`TSParameter`
624-
Parameters of a function.
625-
626-
*hl-TSParameterReference*
627-
`TSParameterReference`
628-
References to parameters of a function.
629-
630-
*hl-TSPreProc*
631-
`TSPreProc`
632-
Preprocessor #if, #else, #endif, etc.
633-
634-
*hl-TSProperty*
635-
`TSProperty`
636-
Same as `TSField`.
637-
638-
*hl-TSPunctDelimiter*
639-
`TSPunctDelimiter`
640-
Punctuation delimiters: Periods, commas, semicolons, etc.
641-
642-
*hl-TSPunctBracket*
643-
`TSPunctBracket`
644-
Brackets, braces, parentheses, etc.
645-
646-
*hl-TSPunctSpecial*
647-
`TSPunctSpecial`
648-
Special punctuation that doesn't fit into the previous categories.
649-
650-
*hl-TSRepeat*
651-
`TSRepeat`
652-
Keywords related to loops: `for`, `while`, etc.
653-
654-
*hl-StorageClass*
655-
`TSStorageClass`
656-
Keywords that affect how a variable is stored: `static`, `comptime`, `extern`,
657-
etc.
658-
659-
*hl-TSString*
660-
`TSString`
661-
String literals.
662-
663-
*hl-TSStringRegex*
664-
`TSStringRegex`
665-
Regular expression literals.
666-
667-
*hl-TSStringEscape*
668-
`TSStringEscape`
669-
Escape characters within a string: `\n`, `\t`, etc.
670-
671-
*hl-TSStringSpecial*
672-
`TSStringSpecial`
673-
Strings with special meaning that don't fit into the previous categories.
674-
675-
*hl-TSSymbol*
676-
`TSSymbol`
677-
Identifiers referring to symbols or atoms.
678-
679-
*hl-TSTag*
680-
`TSTag`
681-
Tags like HTML tag names.
682-
683-
*hl-TSTagAttribute*
684-
`TSTagAttribute`
685-
HTML tag attributes.
686-
687-
*hl-TSTagDelimiter*
688-
`TSTagDelimiter`
689-
Tag delimiters like `<` `>` `/`.
690-
691-
*hl-TSText*
692-
`TSText`
693-
Non-structured text. Like text in a markup language.
694-
695-
*hl-TSSTrong*
696-
`TSStrong`
697-
Text to be represented in bold.
698-
699-
*hl-TSEmphasis*
700-
`TSEmphasis`
701-
Text to be represented with emphasis.
702-
703-
*hl-TSUnderline*
704-
`TSUnderline`
705-
Text to be represented with an underline.
706-
707-
*hl-TSStrike*
708-
`TSStrike`
709-
Strikethrough text.
710-
711-
*hl-TSTitle*
712-
`TSTitle`
713-
Text that is part of a title.
714-
715-
*hl-TSLiteral*
716-
`TSLiteral`
717-
Literal or verbatim text.
718-
719-
*hl-TSURI*
720-
`TSURI`
721-
URIs like hyperlinks or email addresses.
722-
723-
*hl-TSMath*
724-
`TSMath`
725-
Math environments like LaTeX's `$ ... $`.
726-
727-
*hl-TSTextReference*
728-
`TSTextReference`
729-
Footnotes, text references, citations, etc.
730-
731-
*hl-TSEnvironment*
732-
`TSEnvironment`
733-
Text environments of markup languages.
734-
735-
*hl-TSEnvironmentName*
736-
`TSEnvironmentName`
737-
Text/string indicating the type of text environment. Like the name of a
738-
`\begin` block in LaTeX.
739-
740-
*hl-TSNote*
741-
`TSNote`
742-
Text representation of an informational note.
743-
744-
*TSWarning*
745-
`TSWarning`
746-
Text representation of a warning note.
747-
748-
*TSDanger*
749-
`TSDanger`
750-
Text representation of a danger note.
751-
752-
*hl-TSTodo*
753-
`TSTodo`
754-
Anything that needs extra attention, such as keywords like TODO or FIXME.
755-
756-
*hl-TSType*
757-
`TSType`
758-
Type (and class) definitions and annotations.
759-
760-
*hl-TSTypeBuiltin*
761-
`TSTypeBuiltin`
762-
Built-in types: `i32` in Rust.
763-
764-
*hl-TSTypeQualifier*
765-
`TSTypeQualifier`
766-
Qualifiers on types, e.g. `const` or `volatile` in C or `mut` in Rust.
767-
768-
*hl-TSTypeDefinition*
769-
`TSTypeDefinition`
770-
Type definitions, e.g. `typedef` in C.
771-
772-
*hl-TSVariable*
773-
`TSVariable`
774-
Variable names that don't fit into other categories.
775-
776-
*hl-TSVariableBuiltin*
777-
`TSVariableBuiltin`
778-
Variable names defined by the language: `this` or `self` in Javascript.
779-
780479
==============================================================================
781480
PERFORMANCE *nvim-treesitter-performance*
782481

0 commit comments

Comments
 (0)