diff options
Diffstat (limited to 'lexers/pure.lua')
| -rw-r--r-- | lexers/pure.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lexers/pure.lua b/lexers/pure.lua index bece406..256a2dc 100644 --- a/lexers/pure.lua +++ b/lexers/pure.lua @@ -1,5 +1,5 @@ +-- Copyright 2015-2016 David B. Lamkins <david@lamkins.net>. See LICENSE. -- pure LPeg lexer, see http://purelang.bitbucket.org/ --- Author: David B. Lamkins <david@lamkins.net> local l = require('lexer') local token, word_match = l.token, l.word_match @@ -30,10 +30,10 @@ local number = token(l.NUMBER, flt + int) -- Keywords. local keyword = token(l.KEYWORD, word_match{ - 'namespace', 'with', 'end', 'using', 'interface', 'extern', 'let', - 'const', 'def', 'type', 'public', 'private', 'nonfix', 'outfix', - 'infix', 'infixl', 'infixr', 'prefix', 'postfix', 'if', 'otherwise', - 'when', 'case', 'of', 'then', 'else' + 'namespace', 'with', 'end', 'using', 'interface', 'extern', 'let', 'const', + 'def', 'type', 'public', 'private', 'nonfix', 'outfix', 'infix', 'infixl', + 'infixr', 'prefix', 'postfix', 'if', 'otherwise', 'when', 'case', 'of', + 'then', 'else' }) -- Identifiers. |
