logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

text.lua (215B)


  1. -- Copyright 2006-2024 Mitchell. See LICENSE.
  2. -- Text LPeg lexer.
  3. local lexer = require('lexer')
  4. local lex = lexer.new('text')
  5. lex:add_rule('whitespace', lexer.token(lexer.WHITESPACE, lexer.space^1))
  6. return lex