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:
parazyd
2023-08-14 17:09:18 +02:00
parent af01483bfb
commit 6a024ab801
32 changed files with 79 additions and 7 deletions

View File

@@ -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>

View File

@@ -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.

View File

@@ -9,6 +9,7 @@ endif
syn keyword zkasKeyword
\ k
\ field
\ constant
\ witness
\ circuit