diff options
| author | ShootingStarDragons <ShootingStarDragons@protonmail.com> | 2022-07-10 14:16:09 +0800 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-08-16 11:38:50 -0700 |
| commit | a7736608825eb4b9d550d1554c48b5b156d6b840 (patch) | |
| tree | e3f27a3e0ac9da3276675ea4249ad5161e21eb11 /queries/agda | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-a7736608825eb4b9d550d1554c48b5b156d6b840.tar nvim-treesitter-a7736608825eb4b9d550d1554c48b5b156d6b840.tar.gz nvim-treesitter-a7736608825eb4b9d550d1554c48b5b156d6b840.tar.bz2 nvim-treesitter-a7736608825eb4b9d550d1554c48b5b156d6b840.tar.lz nvim-treesitter-a7736608825eb4b9d550d1554c48b5b156d6b840.tar.xz nvim-treesitter-a7736608825eb4b9d550d1554c48b5b156d6b840.tar.zst nvim-treesitter-a7736608825eb4b9d550d1554c48b5b156d6b840.zip | |
add highlights
Diffstat (limited to 'queries/agda')
| -rw-r--r-- | queries/agda/highlights.scm | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/queries/agda/highlights.scm b/queries/agda/highlights.scm new file mode 100644 index 000000000..2a5259824 --- /dev/null +++ b/queries/agda/highlights.scm @@ -0,0 +1,81 @@ + +;; Constants +(integer) @constant + +;; Variables and Symbols + +(typed_binding (atom (qid) @variable)) +(untyped_binding) @variable +(typed_binding (expr) @type) + +(id) @function +(bid) @function + +(function_name (atom (qid) @function)) +(field_name) @function + + +[(data_name) (record_name)] @constructor + +; Set +(SetN) @type.builtin + + +;; Imports and Module Declarations + +"import" @include + +(module_name) @namespace + + + + +;; Pragmas and comments + +(pragma) @constant.macro + +(comment) @comment + +;; Keywords +[ + "where" + "data" + "rewrite" + "postulate" + "public" + "private" + "tactic" + "Prop" + "quote" + "renaming" + "open" + "in" + "hiding" + "constructor" + "abstract" + "let" + "field" + "mutual" + "module" + "infix" + "infixl" + "infixr" + "record" + (ARROW) +] +@keyword + +;;;(expr +;;; f_name: (atom) @function) +;; Brackets + +[ + "(" + ")" + "{" + "}"] +@punctuation.bracket + +[ + "=" +] @operator |
