mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
feat(highlights/julia): Add missing highlights (#2464)
- Add highlights for:
+ command strings
+ abstract type definitions
+ module `end` delimiters
- Distinguish `:` in quotes and ranges (it's already highlighted
differently in ternary expressions).
This commit is contained in:
parent
d6e6581a25
commit
3914267577
1 changed files with 13 additions and 7 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
(triple_string)
|
(triple_string)
|
||||||
(string)
|
(string)
|
||||||
] @string
|
] @string
|
||||||
|
(command_string) @string.special
|
||||||
|
|
||||||
(string
|
(string
|
||||||
prefix: (identifier) @constant.builtin)
|
prefix: (identifier) @constant.builtin)
|
||||||
|
|
@ -83,6 +84,8 @@
|
||||||
(typed_expression
|
(typed_expression
|
||||||
(parameterized_identifier) @type .)
|
(parameterized_identifier) @type .)
|
||||||
|
|
||||||
|
(abstract_definition
|
||||||
|
name: (identifier) @type)
|
||||||
(struct_definition
|
(struct_definition
|
||||||
name: (identifier) @type)
|
name: (identifier) @type)
|
||||||
|
|
||||||
|
|
@ -129,10 +132,11 @@
|
||||||
] @comment
|
] @comment
|
||||||
|
|
||||||
[
|
[
|
||||||
|
"abstract"
|
||||||
"const"
|
"const"
|
||||||
"macro"
|
"macro"
|
||||||
"struct"
|
|
||||||
"primitive"
|
"primitive"
|
||||||
|
"struct"
|
||||||
"type"
|
"type"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
|
@ -168,11 +172,11 @@
|
||||||
(export_statement
|
(export_statement
|
||||||
["export"] @include)
|
["export"] @include)
|
||||||
|
|
||||||
[
|
(import_statement
|
||||||
"using"
|
["import" "using"] @include)
|
||||||
"module"
|
|
||||||
"import"
|
(module_definition
|
||||||
] @include
|
["module" "end"] @include)
|
||||||
|
|
||||||
((identifier) @include (#eq? @include "baremodule"))
|
((identifier) @include (#eq? @include "baremodule"))
|
||||||
|
|
||||||
|
|
@ -180,5 +184,7 @@
|
||||||
(((identifier) @boolean) (#eq? @boolean "true"))
|
(((identifier) @boolean) (#eq? @boolean "true"))
|
||||||
(((identifier) @boolean) (#eq? @boolean "false"))
|
(((identifier) @boolean) (#eq? @boolean "false"))
|
||||||
|
|
||||||
["::" ":" "." "," "..." "!"] @punctuation.delimiter
|
(range_expression ":" @operator)
|
||||||
|
(quote_expression ":" @symbol)
|
||||||
|
["::" "." "," "..." "!"] @punctuation.delimiter
|
||||||
["[" "]" "(" ")" "{" "}"] @punctuation.bracket
|
["[" "]" "(" ")" "{" "}"] @punctuation.bracket
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue