diff options
Diffstat (limited to 'tests/lexers/abnf/example.txt')
| -rw-r--r-- | tests/lexers/abnf/example.txt | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/tests/lexers/abnf/example.txt b/tests/lexers/abnf/example.txt new file mode 100644 index 00000000..3b73c4c1 --- /dev/null +++ b/tests/lexers/abnf/example.txt @@ -0,0 +1,69 @@ +---input--- +crlf = %d13.10 + +command = "command string" + +char-line = %x0D.0A *(%x20-7E) %x0D.0A + +without-ws-and-ctl = %d1-8 / %d11 / %d12 / %d14-31 / %d127 + +three-blank-lines = %x0D.0A.0D.0A.0D.0A + +---tokens--- +'crlf' Name.Class +' ' Text +'=' Operator +' ' Text +'%d13.10' Literal +'\n\n' Text + +'command' Name.Class +' ' Text +'=' Operator +' ' Text +'"command string"' Literal +'\n\n' Text + +'char-line' Name.Class +' ' Text +'=' Operator +' ' Text +'%x0D.0A' Literal +' ' Text +'*' Operator +'(' Punctuation +'%x20-7E' Literal +')' Punctuation +' ' Text +'%x0D.0A' Literal +'\n\n' Text + +'without-ws-and-ctl' Name.Class +' ' Text +'=' Operator +' ' Text +'%d1-8' Literal +' ' Text +'/' Operator +' ' Text +'%d11' Literal +' ' Text +'/' Operator +' ' Text +'%d12' Literal +' ' Text +'/' Operator +' ' Text +'%d14-31' Literal +' ' Text +'/' Operator +' ' Text +'%d127' Literal +'\n\n' Text + +'three-blank-lines' Name.Class +' ' Text +'=' Operator +' ' Text +'%x0D.0A.0D.0A.0D.0A' Literal +'\n' Text |
