symbol.go: New keyword 'but'

This commit is contained in:
Celestino Amoroso 2024-03-30 08:08:11 +01:00
parent 85fb007a2b
commit e085502df3

View File

@ -71,6 +71,7 @@ const (
SymComment SymComment
SymFunction SymFunction
SymList SymList
SymKwBut
// SymOpenComment // 0: '/*' // SymOpenComment // 0: '/*'
// SymClosedComment // 0: '*/' // SymClosedComment // 0: '*/'
// SymOneLineComment // 0: '//' // SymOneLineComment // 0: '//'
@ -82,7 +83,8 @@ func init() {
//keywords = make(map[string]Symbol) //keywords = make(map[string]Symbol)
keywords = map[string]Symbol{ keywords = map[string]Symbol{
"AND": SymKwAnd, "AND": SymKwAnd,
"OR": SymKwOr, "BUT": SymKwBut,
"NOT": SymKwNot, "NOT": SymKwNot,
"OR": SymKwOr,
} }
} }