;; Forked from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/ebnf/highlights.scm ;; Licensed under the Apache License 2.0 ;;;; Simple tokens ;;;; (terminal) @string.grammar (special_sequence) @string.special.grammar (integer) @number (comment) @comment ;;;; Identifiers ;;;; ; Allow different highlighting for specific casings ( (identifier) @type (#lua-match? @type "^%u") ) ( (identifier) @symbol (#lua-match? @symbol "^%l") ) ( (identifier) @constant (#lua-match? @constant "^%u[%u%d_]+$") ) ;;; Punctuation ;;;; [ ";" "," ] @punctuation.delimiter [ "|" "*" "-" ] @operator "=" @keyword.operator [ "(" ")" "[" "]" "{" "}" ] @punctuation.bracket