diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-01-02 22:19:39 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-01-02 22:19:39 +0100 |
| commit | c1bf005f1b6e4cb1f5882219a688de0094fa9a1a (patch) | |
| tree | 57c0ffbc71cac273c068046b04abf0e4d857aee4 /lexers/pure.lua | |
| parent | 890dc58c032603a482a0b80e8810ff67a2fd0b0b (diff) | |
| download | vis-c1bf005f1b6e4cb1f5882219a688de0094fa9a1a.tar.gz vis-c1bf005f1b6e4cb1f5882219a688de0094fa9a1a.tar.xz | |
lexer: sync with upstream scintillua rev bdb74a2f31df
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. |
