minor changes to highlights
This commit is contained in:
parent
e5d8affe5e
commit
4d3b1fdcc7
3 changed files with 3 additions and 6 deletions
|
|
@ -19,6 +19,7 @@ function M.setup(opts)
|
|||
parser_config.perga = {
|
||||
install_info = {
|
||||
url = 'https://forgejo.ballcloud.cc/wball/tree-sitter-perga',
|
||||
-- url = '$HOME/repos/tree-sitter-perga',
|
||||
files = {'src/parser.c'},
|
||||
branch = 'main',
|
||||
generate_requires_npm = false,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[ "fun" "λ" "forall" "∏" "let" "in" "end" "def" "axiom" "variable" "hypothesis" "section" "infixl" "infixr" ] @keyword
|
||||
[ "fun" "λ" "forall" "∏" "let" "in" "end" "def" "axiom" "variable" "hypothesis" "section" "infixl" "infixr" "[" "]" ] @keyword
|
||||
|
||||
(preprocess
|
||||
(command) @keyword
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
(comment) @comment
|
||||
;(block_comment) @comment
|
||||
|
||||
[ "(" ")" "[" "]" ] @punctuation.bracket
|
||||
[ "(" ")" ] @punctuation.bracket
|
||||
|
||||
(definition
|
||||
name: (identifier) @function)
|
||||
|
|
|
|||
|
|
@ -17,7 +17,3 @@
|
|||
(variable_binding
|
||||
"(" @delimiter
|
||||
")" @delimiter @sentinel) @container
|
||||
|
||||
(labs_alt
|
||||
"[" @delimiter
|
||||
"]" @delimiter @sentinel) @container
|
||||
|
|
|
|||
Loading…
Reference in a new issue