mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
zkas: Add a field definition on top of the circuit file.
Currently unused, but will probably be expanded to define proofs over different fields.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
<definitions>
|
||||
<context id="keywords" style-ref="keyword">
|
||||
<keyword>k</keyword>
|
||||
<keyword>field</keyword>
|
||||
<keyword>constant</keyword>
|
||||
<keyword>witness</keyword>
|
||||
<keyword>circuit</keyword>
|
||||
|
||||
@@ -20,7 +20,7 @@ local number = token(l.NUMBER, l.integer)
|
||||
|
||||
-- Keywords.
|
||||
local keyword = token(l.KEYWORD, word_match{
|
||||
'k', 'constant', 'witness', 'circuit',
|
||||
'k', "field", 'constant', 'witness', 'circuit',
|
||||
})
|
||||
|
||||
-- Constants.
|
||||
|
||||
@@ -9,6 +9,7 @@ endif
|
||||
|
||||
syn keyword zkasKeyword
|
||||
\ k
|
||||
\ field
|
||||
\ constant
|
||||
\ witness
|
||||
\ circuit
|
||||
|
||||
Reference in New Issue
Block a user