1

Regenerate nvim config

This commit is contained in:
2024-06-02 03:29:20 +02:00
parent 75eea0c030
commit ef2e28883d
5576 changed files with 604886 additions and 503 deletions

View File

@ -0,0 +1,7 @@
[
(module)
(classlessPredicate)
(dataclass)
(charpred)
(memberPredicate)
] @fold

View File

@ -0,0 +1,154 @@
[
"as"
"by"
"extends"
"from"
"implies"
"in"
"module"
"order"
"select"
"where"
(predicate)
(result)
(specialId)
] @keyword
[
"newtype"
"class"
] @keyword.type
[
"and"
"not"
"or"
] @keyword.operator
[
"avg"
"any"
"count"
"concat"
"exists"
"max"
"min"
"instanceof"
"rank"
"sum"
"strictconcat"
"strictcount"
"strictsum"
] @function.builtin
"import" @keyword.import
[
"if"
"then"
"else"
] @keyword.conditional
[
"forall"
"forex"
] @keyword.repeat
[
"asc"
"desc"
] @keyword.modifier
[
(true)
(false)
] @boolean
[
(this)
(super)
] @variable.builtin
[
"boolean"
"float"
"int"
"date"
"string"
] @type.builtin
(annotName) @attribute
[
"<"
"<="
"="
">"
">="
"-"
"!="
"/"
"*"
"%"
"+"
"::"
] @operator
[
"("
")"
"{"
"}"
"["
"]"
] @punctuation.bracket
[
","
"|"
] @punctuation.delimiter
(moduleExpr
(simpleId) @module)
(module
name: (moduleName) @module)
(dataclass
name: (className) @type)
(typeExpr
name: (className) @type)
(datatype
name: (className) @type.definition)
(importModuleExpr
qualName: (simpleId) @variable)
(varName) @variable
(integer) @number
(float) @number.float
(string) @string
(aritylessPredicateExpr
(literalId) @function)
(memberPredicate
name: (predicateName) @function)
(classlessPredicate
name: (predicateName) @function)
(charpred
(className) @function)
[
(line_comment)
(block_comment)
] @comment @spell
(qldoc) @comment.documentation

View File

@ -0,0 +1,23 @@
[
(module)
(dataclass)
(classMember)
(classlessPredicate)
(quantified)
] @indent.begin
[
")"
"}"
] @indent.end
[
")"
"}"
] @indent.branch
[
(block_comment)
(line_comment)
(qldoc)
] @indent.ignore

View File

@ -0,0 +1,6 @@
([
(line_comment)
(block_comment)
(qldoc)
] @injection.content
(#set! injection.language "comment"))

View File

@ -0,0 +1,49 @@
; SCOPES
(module) @local.scope
(dataclass) @local.scope
(datatype) @local.scope
; TODO does not work
;(classMember (body) @local.scope)
(memberPredicate
(body) @local.scope)
(classlessPredicate
(body) @local.scope)
(quantified
(conjunction) @local.scope)
(select) @local.scope
; DEFINITIONS
; module
(module
name: (moduleName) @local.definition.namespace)
; classes
(dataclass
name: (className) @local.definition.type)
(datatype
name: (className) @local.definition.type)
; predicates
(charpred
(className) @local.definition.method)
(memberPredicate
name: (predicateName) @local.definition.method)
(classlessPredicate
name: (predicateName) @local.definition.function)
; variables
(varDecl
(varName
(simpleId) @local.definition.var))
; REFERENCES
(simpleId) @local.reference