mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 01:10:02 -04:00
Add some comments & TODOs
This commit is contained in:
parent
5b5b55f8ed
commit
99185fcf7d
1 changed files with 10 additions and 8 deletions
|
|
@ -47,8 +47,6 @@
|
||||||
(meta_lit
|
(meta_lit
|
||||||
marker: "^" @punctuation.special)
|
marker: "^" @punctuation.special)
|
||||||
|
|
||||||
;; TODO: Highlight code in comments?
|
|
||||||
|
|
||||||
;; parameter-related
|
;; parameter-related
|
||||||
((sym_lit) @parameter
|
((sym_lit) @parameter
|
||||||
(#match? @parameter "^[&]"))
|
(#match? @parameter "^[&]"))
|
||||||
|
|
@ -57,6 +55,7 @@
|
||||||
(#match? @variable.builtin "^[%]"))
|
(#match? @variable.builtin "^[%]"))
|
||||||
|
|
||||||
;; TODO: General symbol highlighting
|
;; TODO: General symbol highlighting
|
||||||
|
;; use @variable?
|
||||||
;((sym_lit) @symbol
|
;((sym_lit) @symbol
|
||||||
; (#eq? @symbol @variable))
|
; (#eq? @symbol @variable))
|
||||||
|
|
||||||
|
|
@ -90,7 +89,7 @@
|
||||||
(sym_lit) @parameter)?)
|
(sym_lit) @parameter)?)
|
||||||
|
|
||||||
|
|
||||||
;; def-like things
|
;; namespaces
|
||||||
;; TODO
|
;; TODO
|
||||||
;(list_lit
|
;(list_lit
|
||||||
; .
|
; .
|
||||||
|
|
@ -99,12 +98,20 @@
|
||||||
; .
|
; .
|
||||||
; (sym_lit) @function)
|
; (sym_lit) @function)
|
||||||
|
|
||||||
|
;; TODO: symbols with `.`, mark them as namespaces?
|
||||||
|
|
||||||
;; operators
|
;; operators
|
||||||
((sym_lit) @operator
|
((sym_lit) @operator
|
||||||
(#any-of? @operator
|
(#any-of? @operator
|
||||||
"*" "*'" "+" "+'" "-" "-'" "/"
|
"*" "*'" "+" "+'" "-" "-'" "/"
|
||||||
"<" "<=" ">" ">=" "=" "==" "not" "not="))
|
"<" "<=" ">" ">=" "=" "==" "not" "not="))
|
||||||
|
|
||||||
|
;; Ordinary calls
|
||||||
|
;; TODO
|
||||||
|
;; Do this by having a big scope with all symbols in it and
|
||||||
|
;; use `#not-eq? @myvar @parameter`
|
||||||
|
;; NOTE: That's a big hack
|
||||||
|
|
||||||
;; Ordinary calls
|
;; Ordinary calls
|
||||||
;; TODO
|
;; TODO
|
||||||
;; Do this by having a big scope with all symbols in it and
|
;; Do this by having a big scope with all symbols in it and
|
||||||
|
|
@ -252,8 +259,3 @@
|
||||||
"vector" "vector-of" "vector?" "volatile!" "volatile?"
|
"vector" "vector-of" "vector?" "volatile!" "volatile?"
|
||||||
"vreset!" "with-bindings*" "with-meta" "with-redefs-fn" "xml-seq"
|
"vreset!" "with-bindings*" "with-meta" "with-redefs-fn" "xml-seq"
|
||||||
"zero?" "zipmap"))
|
"zero?" "zipmap"))
|
||||||
|
|
||||||
|
|
||||||
;; other symbols with dots
|
|
||||||
;((sym_lit) @variable
|
|
||||||
; (#match? @variable "\\."))
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue