mirror of
https://github.com/bearlanguageorg/bear.git
synced 2026-08-26 16:07:01 +00:00
Bunch of updates
This commit is contained in:
@@ -51,6 +51,7 @@ pub enum TokKind {
|
||||
kw_assert
|
||||
kw_import
|
||||
kw_enum
|
||||
kw_const
|
||||
}
|
||||
|
||||
pub struct Tok {
|
||||
@@ -278,6 +279,7 @@ fn (mut l Lexer) lex_ident(line int) Tok {
|
||||
'assert' { TokKind.kw_assert }
|
||||
'import' { TokKind.kw_import }
|
||||
'enum' { TokKind.kw_enum }
|
||||
'const' { TokKind.kw_const }
|
||||
else { TokKind.ident }
|
||||
}
|
||||
return Tok{ kind: kind, lit: lit, line: line }
|
||||
|
||||
Reference in New Issue
Block a user