diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-01-16 16:40:31 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-01-16 16:40:31 +0100 |
| commit | 1b0382160acda0a9efd5c07045619bc20292192a (patch) | |
| tree | 7ded7abc6eb05e491f550d23a7ea55b798b0e40c /lua/lexers/text.lua | |
| parent | 5d610affb2d5332a417248a32da81acf72ea8e4f (diff) | |
| parent | febe0528303f838fa9f346aa343fff0fe29f5ba3 (diff) | |
| download | vis-1b0382160acda0a9efd5c07045619bc20292192a.tar.gz vis-1b0382160acda0a9efd5c07045619bc20292192a.tar.xz | |
Merge branch 'text' of https://github.com/zsugabubus/vis
Diffstat (limited to 'lua/lexers/text.lua')
| -rw-r--r-- | lua/lexers/text.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/lexers/text.lua b/lua/lexers/text.lua index 4988d95..cc41bfa 100644 --- a/lua/lexers/text.lua +++ b/lua/lexers/text.lua @@ -1,6 +1,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 |
