From a9849ebee41a8cb884a9351d36ebd399adb4111e Mon Sep 17 00:00:00 2001 From: Álan Crístoffer Date: Sat, 1 Jul 2023 00:39:17 +0200 Subject: highlight(matlab): Fix string's single-quote's color (#7493) --- runtime/queries/matlab/highlights.scm | 67 ++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 33 deletions(-) (limited to 'runtime/queries') 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 -- cgit v1.2.3-70-g09d2