repo.or.cz
/
vis.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vis: implement :set cursorline
[vis.git]
/
lexers
/
template.txt
blob
4f8c560d9623c3a41bc6049687038d994385faf7
1
-- ? LPeg lexer.
2
3
local l = require('lexer')
4
local token, word_match = l.token, l.word_match
5
local P, R, S = lpeg.P, lpeg.R, lpeg.S
6
7
local M = {_NAME = '?'}
8
9
-- Whitespace.
10
local ws = token(l.WHITESPACE, l.space^1)
11
12
M._rules = {
13
{'whitespace', ws},
14
}
15
16
M._tokenstyles = {
17
18
}
19
20
return M