on master help sign in
highlight(matlab): Fix string's single-quote's color (#7493)
commita9849ebee41a8cb884a9351d36ebd399adb4111e authorÁlan Crístoffer <acristoffers@startmail.com> dateSat 1 Jul 2023, 00:39 (3 years ago) parentaec1b99
1 file changed+34−33
runtime/queries/matlab/highlights.scm+34−33
runtime/queries/matlab/highlights.scm+34−33
@@ -41,39 +41,6 @@
4141
4242(function_arguments (identifier) @variable.parameter)
4343
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−
7744; Conditionals
7845
7946(if_statement [ "if" "end" ] @keyword.control.conditional)
@@ -106,12 +73,46 @@
10673(formatting_sequence) @constant.character.escape
10774(string) @string
10875(number) @constant.numeric.float
76+(unary_operator ["+" "-"] @constant.numeric.float)
10977(boolean) @constant.builtin.boolean
11078
11179; Comments
11280
11381[ (comment) (line_continuation) ] @comment.line
11482
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+
115116; Keywords
116117
117118"classdef" @keyword.storage.type