aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/matlab
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/matlab')
-rw-r--r--runtime/queries/matlab/highlights.scm67
1 files changed, 34 insertions, 33 deletions
diff --git a/runtime/queries/matlab/highlights.scm b/runtime/queries/matlab/highlights.scm
index bc4c5069..875cba50 100644
--- a/runtime/queries/matlab/highlights.scm
+++ b/runtime/queries/matlab/highlights.scm
@@ -41,39 +41,6 @@
(function_arguments (identifier) @variable.parameter)
-; Operators
-
-[
- "+"
- ".+"
- "-"
- ".*"
- "*"
- ".*"
- "/"
- "./"
- "\\"
- ".\\"
- "^"
- ".^"
- "'"
- ".'"
- "|"
- "&"
- "?"
- "@"
- "<"
- "<="
- ">"
- ">="
- "=="
- "~="
- "="
- "&&"
- "||"
- ":"
-] @operator
-
; Conditionals
(if_statement [ "if" "end" ] @keyword.control.conditional)
@@ -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