aboutsummaryrefslogtreecommitdiff
path: root/lua/lexers/text.lua
blob: cc41bfaff59d8b945cbe338f7c321479d5fed32b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE.
-- Text LPeg lexer.

local l = require('lexer')

local M = {_NAME = 'text'}

-- Whitespace.
local ws = l.token(l.WHITESPACE, l.space^1)

M._rules = {
  {'whitespace', ws},
}

return M