aboutsummaryrefslogtreecommitdiff
path: root/lexers/pure.lua
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-01-02 22:19:39 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-01-02 22:19:39 +0100
commitc1bf005f1b6e4cb1f5882219a688de0094fa9a1a (patch)
tree57c0ffbc71cac273c068046b04abf0e4d857aee4 /lexers/pure.lua
parent890dc58c032603a482a0b80e8810ff67a2fd0b0b (diff)
downloadvis-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.lua10
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.