Skip to content

Commit

Permalink
highlight(matlab): Fix string's single-quote's color (#7493)
Browse files Browse the repository at this point in the history
  • Loading branch information
acristoffers committed Jun 30, 2023
1 parent aec1b99 commit a9849eb
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 a9849eb

Please sign in to comment.