Skip to content

Commit

Permalink
highlight(matlab): Fix string's single-quote's color (helix-editor#7493)
Browse files Browse the repository at this point in the history
  • Loading branch information
acristoffers authored and Schuyler Mortimer committed Jul 10, 2024
1 parent ece766c commit be7ee08
Showing 1 changed file with 34 additions and 33 deletions.
67 changes: 34 additions & 33 deletions runtime/queries/matlab/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -41,39 +41,6 @@

(function_arguments (identifier) @variable.parameter)

; Operators

[
"+"
".+"
"-"
".*"
"*"
".*"
"/"
"./"
"\\"
".\\"
"^"
".^"
"'"
".'"
"|"
"&"
"?"
"@"
"<"
"<="
">"
">="
"=="
"~="
"="
"&&"
"||"
":"
] @operator

; Conditionals

(if_statement [ "if" "end" ] @keyword.control.conditional)
Expand Down Expand Up @@ -106,12 +73,46 @@
(formatting_sequence) @constant.character.escape
(string) @string
(number) @constant.numeric.float
(unary_operator ["+" "-"] @constant.numeric.float)
(boolean) @constant.builtin.boolean

; Comments

[ (comment) (line_continuation) ] @comment.line

; Operators

[
"+"
".+"
"-"
".*"
"*"
".*"
"/"
"./"
"\\"
".\\"
"^"
".^"
"'"
".'"
"|"
"&"
"?"
"@"
"<"
"<="
">"
">="
"=="
"~="
"="
"&&"
"||"
":"
] @operator

; Keywords

"classdef" @keyword.storage.type
Expand Down

0 comments on commit be7ee08

Please sign in to comment.