Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escaped Character highlighting support inside string literals. #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Icarus.novaextension/Queries/c/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
(null) @value.null
(number_literal) @value.number
(char_literal) @value.number
(escape_sequence) @value.number
[
(true)
(false)
Expand Down
5 changes: 3 additions & 2 deletions Icarus.novaextension/Queries/cpp/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@

; Types

(qualified_identifier
(qualified_identifier
scope: (namespace_identifier) @identifier.type)

(type_descriptor
(qualified_identifier
(qualified_identifier
name: (type_identifier) @identifier.type))

((namespace_identifier) @identifier.type
Expand Down Expand Up @@ -184,6 +184,7 @@
(string_literal) @string
(raw_string_literal) @string
(char_literal) @value.number
(escape_sequence) @value.number

; Declarations

Expand Down
10 changes: 5 additions & 5 deletions Icarus.novaextension/Queries/objc/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
(module_string)
] @string

(escape_sequence) @string.escape
(escape_sequence) @value.number

(null) @value.null
(nil) @value.null
Expand Down Expand Up @@ -290,7 +290,7 @@
function: (identifier) @identifier.function)
(function_declarator
declarator: (identifier) @identifier.function)
(selector_expression
(selector_expression
name: (identifier) @identifier.function)
; (method_declaration
; selector: (identifier) @identifier.function)
Expand Down Expand Up @@ -349,17 +349,17 @@
;; Parameters
; (parameter_declaration
; declarator: (identifier) @identifier.variable.parameter)
;
;
; (parameter_declaration
; declarator: (pointer_declarator) @identifier.variable.parameter)
;
;
; (parameter_declaration
; declarator: (pointer_declarator
; declarator: (identifier) @identifier.variable.parameter))

; (for_in_statement
; loop: (identifier) @identifier.variable)
;
;
; (dictionary_expression
; key: (_expression) @identifier.variable)
; (dictionary_expression
Expand Down
4 changes: 2 additions & 2 deletions Icarus.novaextension/Queries/swift/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@

; String literals
(line_str_text) @string
(str_escaped_char) @string
(str_escaped_char) @value.number
(multi_line_str_text) @string
(raw_str_part) @string
(raw_str_end_part) @string
Expand Down Expand Up @@ -167,7 +167,7 @@

"..<"
"..."

(bang)
] @operator

Expand Down