; SCL highlights ; Comments (line_comment) @comment (block_comment) @comment (c_style_comment) @comment ; Literals (number) @number (hex_number) @number (binary_number) @number (octal_number) @number (time_value) @number (date_literal) @number (bool_literal) @constant.builtin (typed_int_literal) @number (wstring_literal) @string (char_literal) @character (string) @string ; Prefix (prefix) @punctuation.special ; Variables and identifiers (identifier) @variable ; FB instance calls (fb_call instance: (prefixed_identifier (identifier) @type)) (fb_call instance: (identifier) @type) ; FB parameter names (fb_parameter name: (identifier) @property) ; Function call names (function_call (identifier) @function) (function_call (string) @function) ; Method call names (method_callee (identifier) @function) ; Variable declarations (var_item name: (identifier) @variable) ; Type references (type (identifier) @type) (type_builtin) @type.builtin ; Keywords and operators (keyword) @keyword (constant) @constant.builtin (operator) @operator ; Block names (organization_block name: (string) @type) (function_block name: (string) @type) (function name: (string) @function) (data_block name: (string) @type) (type_definition name: (string) @type) ; Access (field_access "." (identifier) @property) (array_access) @property (bit_access) @property ; Attributes (attribute_list) @attribute (attribute) @attribute (attribute_value) @string ; Statements (assignment) @operator (binary_expression) @operator (unary_expression) @operator (chained_assignment) @operator ; Function/FB calls (function_call) @function.call (fb_call) @function.call ; Control flow (if_statement) @conditional (elsif_clause) @conditional (else_clause) @conditional (case_statement) @conditional (case_item) @conditional (for_statement) @repeat (while_statement) @repeat (repeat_statement) @repeat (return_statement) @keyword (goto_statement) @keyword ; Title (title_statement) @comment ; Punctuation ";" @punctuation.delimiter ":" @punctuation.delimiter "," @punctuation.delimiter "(" @punctuation.bracket ")" @punctuation.bracket "[" @punctuation.bracket "]" @punctuation.bracket "." @punctuation.delimiter ; Operators ":=" @operator "=>" @operator "+=" @operator "-=" @operator "*=" @operator "/=" @operator "&=" @operator "|=" @operator "^=" @operator "=" @operator "<>" @operator "<" @operator ">" @operator "<=" @operator ">=" @operator "+" @operator "-" @operator "*" @operator "/" @operator