Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/matlab/highlights.scm')
| -rw-r--r-- | runtime/queries/matlab/highlights.scm | 67 |
1 files changed, 33 insertions, 34 deletions
diff --git a/runtime/queries/matlab/highlights.scm b/runtime/queries/matlab/highlights.scm index 875cba50..bc4c5069 100644 --- a/runtime/queries/matlab/highlights.scm +++ b/runtime/queries/matlab/highlights.scm @@ -41,6 +41,39 @@ (function_arguments (identifier) @variable.parameter) +; Operators + +[ + "+" + ".+" + "-" + ".*" + "*" + ".*" + "/" + "./" + "\\" + ".\\" + "^" + ".^" + "'" + ".'" + "|" + "&" + "?" + "@" + "<" + "<=" + ">" + ">=" + "==" + "~=" + "=" + "&&" + "||" + ":" +] @operator + ; Conditionals (if_statement [ "if" "end" ] @keyword.control.conditional) @@ -73,46 +106,12 @@ (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 |