on master help sign in
highlight(matlab): Fix string's single-quote's color (#7493)
a9849ebÁlan Crístoffer
runtime/queries/matlab/highlights.scm+34−33
@@ -41,39 +41,6 @@
41
41
42(function_arguments (identifier) @variable.parameter)
42(function_arguments (identifier) @variable.parameter)
43
43
44−; Operators
45−
46−[
47− "+"
48− ".+"
49− "-"
50− ".*"
51− "*"
52− ".*"
53− "/"
54− "./"
55− "\\"
56− ".\\"
57− "^"
58− ".^"
59− "'"
60− ".'"
61− "|"
62− "&"
63− "?"
64− "@"
65− "<"
66− "<="
67− ">"
68− ">="
69− "=="
70− "~="
71− "="
72− "&&"
73− "||"
74− ":"
75−] @operator
76−
77; Conditionals
44; Conditionals
78
45
79(if_statement [ "if" "end" ] @keyword.control.conditional)
46(if_statement [ "if" "end" ] @keyword.control.conditional)
@@ -106,12 +73,46 @@
106(formatting_sequence) @constant.character.escape
73(formatting_sequence) @constant.character.escape
107(string) @string
74(string) @string
108(number) @constant.numeric.float
75(number) @constant.numeric.float
76+(unary_operator ["+" "-"] @constant.numeric.float)
109(boolean) @constant.builtin.boolean
77(boolean) @constant.builtin.boolean
110
78
111; Comments
79; Comments
112
80
113[ (comment) (line_continuation) ] @comment.line
81[ (comment) (line_continuation) ] @comment.line
114
82
83+; Operators
84+
85+[
86+ "+"
87+ ".+"
88+ "-"
89+ ".*"
90+ "*"
91+ ".*"
92+ "/"
93+ "./"
94+ "\\"
95+ ".\\"
96+ "^"
97+ ".^"
98+ "'"
99+ ".'"
100+ "|"
101+ "&"
102+ "?"
103+ "@"
104+ "<"
105+ "<="
106+ ">"
107+ ">="
108+ "=="
109+ "~="
110+ "="
111+ "&&"
112+ "||"
113+ ":"
114+] @operator
115+
115; Keywords
116; Keywords
116
117
117"classdef" @keyword.storage.type
118"classdef" @keyword.storage.type