diff options
| author | Matthäus G. Chajdas <dev@anteru.net> | 2021-12-28 16:17:08 +0100 |
|---|---|---|
| committer | Matthäus G. Chajdas <dev@anteru.net> | 2021-12-28 16:17:08 +0100 |
| commit | a7094139d7734beebfaeae9c3da4e26aa26ccb22 (patch) | |
| tree | 1a26163310186ff7e3994006027ecc93513bdaa1 /tests/examplefiles/rita/example.rita.output | |
| parent | 42b61e170ec321ad3487a3865e19cbc3ba757691 (diff) | |
| download | pygments-git-a7094139d7734beebfaeae9c3da4e26aa26ccb22.tar.gz | |
Various small fixups for the Rita lexer.
Diffstat (limited to 'tests/examplefiles/rita/example.rita.output')
| -rw-r--r-- | tests/examplefiles/rita/example.rita.output | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/tests/examplefiles/rita/example.rita.output b/tests/examplefiles/rita/example.rita.output new file mode 100644 index 00000000..1b0aaa46 --- /dev/null +++ b/tests/examplefiles/rita/example.rita.output @@ -0,0 +1,121 @@ +'@alias IN_LIST IL\n' Operator + +'\n' Text.Whitespace + +'!' Operator +'CONFIG' Keyword +'(' Punctuation +'"case_sensitive"' Literal +',' Punctuation +' ' Text.Whitespace +'"N"' Literal +')' Punctuation +'\n' Text.Whitespace + +'\n' Text.Whitespace + +'cars' Name +' ' Text.Whitespace +'=' Operator +' ' Text.Whitespace +'LOAD' Keyword +'(' Punctuation +'"examples/cars.txt"' Literal +')' Punctuation +' ' Text.Whitespace +'# Load items from file\n' Comment.Single + +'colors' Name +' ' Text.Whitespace +'=' Operator +' ' Text.Whitespace +'{' Punctuation +'"red"' Literal +',' Punctuation +' ' Text.Whitespace +'"green"' Literal +',' Punctuation +' ' Text.Whitespace +'"blue"' Literal +',' Punctuation +' ' Text.Whitespace +'"white"' Literal +',' Punctuation +' ' Text.Whitespace +'"black"' Literal +'}' Punctuation +' ' Text.Whitespace +'# Declare items inline\n' Comment.Single + +'\n' Text.Whitespace + +'{' Punctuation +'IL' Keyword +'(' Punctuation +'colors' Name +')' Punctuation +',' Punctuation +' ' Text.Whitespace +'WORD' Keyword +'(' Punctuation +'"car"' Literal +')' Punctuation +'}' Punctuation +' ' Text.Whitespace +'->' Operator +' ' Text.Whitespace +'MARK' Keyword +'(' Punctuation +'"CAR_COLOR"' Literal +')' Punctuation +' ' Text.Whitespace +'# If first token is in list `colors` and second one is word `car`, label it\n' Comment.Single + +'\n' Text.Whitespace + +'{' Punctuation +'IL' Keyword +'(' Punctuation +'cars' Name +')' Punctuation +',' Punctuation +' ' Text.Whitespace +'WORD' Keyword +'+' Operator +'}' Punctuation +' ' Text.Whitespace +'->' Operator +' ' Text.Whitespace +'MARK' Keyword +'(' Punctuation +'"CAR_MODEL"' Literal +')' Punctuation +' ' Text.Whitespace +'# If first token is in list `cars` and follows by 1..N words, label it\n' Comment.Single + +'\n' Text.Whitespace + +'{' Punctuation +'ENTITY' Keyword +'(' Punctuation +'"PERSON"' Literal +')' Punctuation +',' Punctuation +' ' Text.Whitespace +'LEMMA' Keyword +'(' Punctuation +'"like"' Literal +')' Punctuation +',' Punctuation +' ' Text.Whitespace +'WORD' Keyword +'}' Punctuation +' ' Text.Whitespace +'->' Operator +' ' Text.Whitespace +'MARK' Keyword +'(' Punctuation +'"LIKED_ACTION"' Literal +')' Punctuation +' ' Text.Whitespace +'# If first token is Person, followed by any word which has lemma `like`, label it\n' Comment.Single |
