1

Update generated neovim config

This commit is contained in:
2024-08-15 14:28:54 +02:00
parent 07409c223d
commit 25cfcf2941
3809 changed files with 351157 additions and 0 deletions

View File

@ -0,0 +1,6 @@
[
(circuit)
(module)
(when)
(else)
] @fold

View File

@ -0,0 +1,191 @@
; Namespaces
(circuit (identifier) @namespace)
(module (identifier) @namespace)
; Types
((identifier) @type
(#lua-match? @type "^[A-Z][A-Za-z0-9_$]*$"))
; Keywords
[
"circuit"
"module"
"extmodule"
"flip"
"parameter"
"reset"
"wire"
"cmem"
"smem"
"mem"
"reg"
"with"
"mport"
"inst"
"of"
"node"
"is"
"invalid"
"skip"
"infer"
"read"
"write"
"rdwr"
] @keyword
[
"defname"
] @keyword.variable
; Qualifiers
(qualifier) @type.qualifier
; Storageclasses
[
"input"
"output"
] @storageclass
; Conditionals
[
"when"
"else"
] @conditional
; Annotations
(info) @annotation
; Builtins
[
"stop"
"printf"
"assert"
"assume"
"cover"
"attach"
"mux"
"validif"
] @function.builtin
[
"UInt"
"SInt"
"Analog"
"Fixed"
"Clock"
"AsyncReset"
"Reset"
] @type.builtin
; Fields
[
"data-type"
"depth"
"read-latency"
"write-latency"
"read-under-write"
"reader"
"writer"
"readwriter"
] @field.builtin
((field_id) @field
(#set! "priority" 105))
(port (identifier) @field)
(wire (identifier) @field)
(cmem (identifier) @field)
(smem (identifier) @field)
(memory (identifier) @field)
(register (identifier) @field)
; Parameters
(primitive_operation (identifier) @parameter)
(mux (identifier) @parameter)
(printf (identifier) @parameter)
(reset (identifier) @parameter)
(stop (identifier) @parameter)
; Variables
(identifier) @variable
; Operators
(primop) @keyword.operator
[
"+"
"-"
"="
"=>"
"<="
"<-"
] @operator
; Literals
[
(uint)
(number)
] @number
(number_str) @string.special
(double) @float
(string) @string
(escape_sequence) @string.escape
[
"old"
"new"
"undefined"
] @constant.builtin
; Punctuation
[ "{" "}" ] @punctuation.bracket
[ "[" "]" ] @punctuation.bracket
[ "<" ">" ] @punctuation.bracket
[ "(" ")" ] @punctuation.bracket
[
","
"."
":"
] @punctuation.delimiter
; Comments
(comment) @comment @spell
["=>" "<=" "="] @operator
; Error
(ERROR) @error

View File

@ -0,0 +1,12 @@
[
(circuit)
(module)
(memory)
(when)
(else)
] @indent
[
(ERROR)
(comment)
] @auto

View File

@ -0,0 +1 @@
(comment) @comment

View File

@ -0,0 +1,38 @@
; Scopes
[
(source_file)
(circuit)
(module)
(else)
(when)
] @scope
; References
(identifier) @reference
; Definitions
(port (identifier) @definition.field)
(wire (identifier) @definition.field)
(cmem (identifier) @definition.field)
(smem (identifier) @definition.field)
(memory (identifier) @definition.field)
(register (identifier) @definition.field)
(circuit (identifier) @definition.namespace)
(module (identifier) @definition.namespace)
(parameter (identifier) @definition.parameter)
(rdwr (identifier) @definition.var)
(node (identifier) @definition.var)