diff options
| author | David Corbett <corbett.dav@husky.neu.edu> | 2016-03-21 16:28:50 -0400 |
|---|---|---|
| committer | David Corbett <corbett.dav@husky.neu.edu> | 2016-03-21 16:28:50 -0400 |
| commit | 3754b29cbb08de34a06c6803df7d049e466cafec (patch) | |
| tree | e06a8b6f6e009805bdaae71f35c43ba5ff293d29 /tests/examplefiles/example.lua | |
| parent | ce93b89a0b9d6b3b0eb828e049952c4ff84421fd (diff) | |
| download | pygments-3754b29cbb08de34a06c6803df7d049e466cafec.tar.gz | |
Improve LuaLexer
Diffstat (limited to 'tests/examplefiles/example.lua')
| -rw-r--r-- | tests/examplefiles/example.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/examplefiles/example.lua b/tests/examplefiles/example.lua index 0289e58c..8ecd6a13 100644 --- a/tests/examplefiles/example.lua +++ b/tests/examplefiles/example.lua @@ -247,4 +247,28 @@ function AucAdvanced.Debug.Assert(test, message) return DebugLib.Assert(addonName, test, message) end +--[==[ +Here follow further tests of Lua syntax. +]]==] +---[[ +local t = { + [ [[ +x +]==] \]]]=1|2; a={b={c={}}}, + 1, 1., 1.2, .2, 1e3, 1.e3, 1.2e3, .2e3, 1.2e+3, 1.2E-3; + 0xA, 0Xa, 0xA., 0x.F, 0xA.F, 0xA.Fp1, 0xA.FP+1, 0Xa.fp-1; +} +function t.f() + goto eof + os.exit() + :: eof :: +end + +function t . a --[==[x]==] .b --[==[y]==] -- +-- () end + . c : d (file) + return '.\a.\b.\f.\n.\r.\t.\v.\\.\".\'.\ +.\z + .\0.\00.\000.\0000.\xFa.\u{1}.\u{1234}' +end |
