mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-22 23:35:22 +00:00
formal grammar updates [backport:1.2] (#18803)
This commit is contained in:
@@ -13,6 +13,7 @@ proc checkGrammarFileImpl(cache: IdentCache, config: ConfigRef) =
|
||||
var stream = llStreamOpen(data)
|
||||
var declaredSyms = initHashSet[string]()
|
||||
var usedSyms = initHashSet[string]()
|
||||
usedSyms.incl "module" # 'module' is the start rule.
|
||||
if stream != nil:
|
||||
declaredSyms.incl "section" # special case for 'section(RULE)' in the grammar
|
||||
var
|
||||
|
||||
Reference in New Issue
Block a user