aboutsummaryrefslogtreecommitdiff
path: root/lexers/template.txt
diff options
context:
space:
mode:
Diffstat (limited to 'lexers/template.txt')
-rw-r--r--lexers/template.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/lexers/template.txt b/lexers/template.txt
new file mode 100644
index 0000000..4f8c560
--- /dev/null
+++ b/lexers/template.txt
@@ -0,0 +1,20 @@
+-- ? LPeg lexer.
+
+local l = require('lexer')
+local token, word_match = l.token, l.word_match
+local P, R, S = lpeg.P, lpeg.R, lpeg.S
+
+local M = {_NAME = '?'}
+
+-- Whitespace.
+local ws = token(l.WHITESPACE, l.space^1)
+
+M._rules = {
+ {'whitespace', ws},
+}
+
+M._tokenstyles = {
+
+}
+
+return M