diff --git a/runtime/queries/matlab/highlights.scm b/runtime/queries/matlab/highlights.scm index bc4c5069ee0d..875cba509772 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