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
filetype: Set "groovy" for Jenkinsfile
[vis.git]
/
lua
/
lexers
/
text.lua
blob
cc41bfaff59d8b945cbe338f7c321479d5fed32b
1
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE.
2
-- Text LPeg lexer.
3
4
local
l
=
require
(
'lexer'
)
5
6
local
M
= {
_NAME
=
'text'
}
7
8
-- Whitespace.
9
local
ws
=
l
.
token
(
l
.
WHITESPACE
,
l
.
space^
1
)
10
11
M
.
_rules
= {
12
{
'whitespace'
,
ws
},
13
}
14
15
return
M