| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* tcl lexer: no error for @ or ,
* examplefiles --> snippets
* rename test file to convention
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The PR #1819 provides a tool to identify unique token types. This PR
aims to remove the most obvious cases of unicorn styles which are used
in a single lexer only.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* add Procfile Lexer
* add unit tests for ProcfileLexer
* add Procfile lexer author
* Document Procfile as supported language
* add Procfile.output file
* merge Profile files; update output file
* Add versionadded info
* Fix typo (processus -> processes)
* detect Integer only
* split Text from Whitespace
|
| | | |
| | | |
| | | |
| | | | |
The CFamilyLexer was matching whitespace as Text instead of Whitespace.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
CFamilyLexer failed to tokenize preprocessor macros when they were
preceded by line break surrounded by spaces. This was the case because
prerpocessor regex rule expected to start at the beginning of the line,
but the space regex rule matched also the whitespace after the line
break. Now the space rule has been refined not to match the line break.
Because of this, the preprocessor regex rule correctly matches
prerpocessor tokens even when they are preceded by white spaces, at the
cost of adding some more tokens in the token stream in some cases. This
change preserves the behavior of invalid preprocessor usage failing to
tokenize.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Add a Meson language lexer
* update the mappings
* Add meson to the list of supported languages
* Add a meson.build example file
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
fixes #1843
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The keywords are based on the extraction of keywords the LLVM 12.0 lexer
source code. They were taken from the `KEYWORD` and `INSTKEYWORD` macros
for the 'Keyword' tokens, and 'Type' tokens were from the `TYPEKEYWORD`
macro. The keywords were then sorted against the current set.
Due to formatting issues in the arrays, the actual Type diff is:
``` diff
+x86_mmx
+x86_amx
```
and the Keyword diff is:
``` diff
+aarch64_sve_vector_pcs
+aarch64_vector_pcs
+alwaysInline
+amdgpu_gfx
+blockcount
+byref
+callbr
+canAutoHide
+cfguard_checkcc
+dso_local_equivalent
+fneg
+mustprogress
+nocallback
+nofree
+noInline
+nomerge
+noprofile
+nosync
+noundef
+null_pointer_is_valid
+param
+params
+partition
+preallocated
+sanitize_memtag
+speculative_load_hardening
+tailcc
+typeidCompatibleVTable
+varFlags
+vcall_visibility
+virtFunc
+vscale
+vTableFuncs
+x
```
|
|/ / / |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* groovy lexer: parse keywords before function names like java
* groovy lexer: detect quoted function names
* changes: update groovy lexer
|
| | |
| | |
| | |
| | |
| | |
| | | |
check source code of `python-ctags` and `python-ctags3` to see what
argument type is expected (answer: `char *`);
guess this is python 2 legacy; but now it should work in python 3;
|
| | |
| | |
| | |
| | |
| | | |
* Support Terraform 0.14 syntax
* Use \S instead of [^\s]
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Support for OMG IDL
Lexer for [Object Management Group Interface Definition Language](https://www.omg.org/spec/IDL/About-IDL/).
* Allow Whitespace Before include in C Preprocessor
It wasn't highlighting the included filename the same as if there was no
space before the include, but now it is.
* Update omg-idl Tests to Latest Requirements
* Update omg-idl versionadded to 2.9
Since I just realized this missed the 2.8 release.
* Add Missing Operators to omg-idl
|
| | |
| | |
| | |
| | |
| | | |
* add gruvbox light and dark themes
* update changes for gruvbox style
|
| | |
| | |
| | | |
Also removed invalid "AS" from TypeScript lexer.
|
| | |
| | |
| | |
| | |
| | | |
* uniformize aliases order
* LighttpdConfLexer: add lighttpd.conf filename
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Fix PromQL lexer to support values enclosed within single quotes
Values for labels could now be enclosed within single or double quotes.
* Fix a typo into the lables regex for PromQL lexer
The correct label matching operator is `!~` instead of `~!`.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
The current implementation is broken, and it is not
easy to find a good one for such a generic format.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Added new modifier tokenizer.
* Add expected output for the AMDGPU test.
* Used "words" function.
|
| | |
| | |
| | |
| | | |
Fixes #1771
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* lexers: python: add test cases for floats
* lexers: python: fix float lexing
* lexer:python:fixed test syntax
Co-authored-by: Aidan Do <giahuydo99@gmail.com>
|
| | | |
|
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* lexers: devicetree: allow node label without root node
It is sometimes useful to render DeviceTree snippets such as:
foo: bar@1234 {
foo = "bar";
};
However the snipper shown above does not render properly unless it is
enclosed on a root node, i.e.
/{
foo: bar@1234 {
foo = "bar";
};
};
Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
* tests: add devicetree lexer test for fragments out of root node
Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* add WebAssembly lexer
* avoid test failure by using the default function instead of an empty regex
* address small issues
* fix WebAssembly string escapes
* change WebAssembly multiline comment parsing
* update copyright year
* set versionadded to 2.9
* change WebAssembly tests to use the new test system
* change WebAssembly unit test to use snippets
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Filename to <th> if linenos=table (fixes #1757)
* Emit `<th>` for `filename` if `linenos=table`.
* Added test cases for filename inclusion.
* Updated CHANGES
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Add NestedText lexer
* Add NestedText to list of supported languages
* Add some more test cases
* Update tests.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Two small tweaks to the APL lexer:
1. Add all APL file suffixes
2. Allow leading _ in variable names (GNU APL, Dyalog)
* Build mappings to pick up new file extensions
* Add tests for APL:
1. Leading underscores for variables OK (Dyalog, GNU)
|
| |
| |
| |
| | |
Also fixes the versionadded macro.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Add a teal lexer
* fix an indent
* convert tests, fix version, alias
* fix examplefile
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Added ThingsDB Language support
* Update ThingsDB language
* add comments to syntax
* Update to new test system.
Co-authored-by: Jeroen van der Heijden <joente@gmail.com>
Co-authored-by: Matthäus G. Chajdas <dev@anteru.net>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Add KuinLexer
* Add golden test output.
* Update mapfiles.
* Update URL.
* Fix regex lint failures.
Co-authored-by: tatt61880 <tatt61880@gmail.com>
Co-authored-by: Matthäus G. Chajdas <dev@anteru.net>
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Add apdl and gcode lexers
* Added requested changes except words function
* Added requested changes except words function
* Added words function to handle lists of keywords
* Add two testing example files
* Delete two_dimensional_truss.ans
* Delete coupled_example.ans
* Create example1apdl.ans
* Create example2apdl.ans
* General cleanup of apdlexer and creation of mapfiles
* Escaped backslashes in string literals on apdlexer
* Removed backslashes. None was necessary in the first place
* Added apdl aliase and a * based command in the test file
* Forgot to create the map files
* Tested version. Also removed an unused function from apdlexer
* Added examples for gcode and golden output
* Trimming of gcode files to a few dozens of lines
* Removed duplicates from elafunb
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Update the Chapel lexer
Signed-off-by: Engin Kayraklioglu <e-kayrakli@users.noreply.github.com>
* Update the test
Signed-off-by: Engin Kayraklioglu <e-kayrakli@users.noreply.github.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Remove duplicate lines in state
* Refactor ident regex for readability
Refactor ident regex changed in c1a0d82 to improve readability.
Refactor namespaced_ident regex added in c1a0d82 to improve readability.
* Fix inline keword lexing
* Fix indentation
* Refactor CLexer keywords to 'keywords' state
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Fix #1735 pull request
* LaTeX: workaround to ensure compatibility with minted
This reverts already merged #1735 (after a commit from #1736 to fix it)
and applies the first envisioned method discussed in #1734.
The reason is that the #1735-#1736 method only partially repairs the
minted compatibility. Minted queries from Pygments the stylesheet
with a command prefix equal to the style name, which may contain
(at least, so far) characters such as - and _, which are not normally
allowed in LaTeX macros. So it modifies the meaning of - and _ before
telling LaTeX to input the Pygments provided stylesheet. Restoring
the normal meaning of - from inside the stylesheet must be carefully
localized: at top and bottom of stylesheets some macros will use in
their names the - and there the - must be the weird minted one, not
the normal one.
The #1735-#1736 method thus does fix compatibility with minted but *only*
for those style names not using a -, but it creates another issue if
used with e.g. style "paraiso-dark" which has a - character in its name.
"De guerre lasse", I feel it is simpler to use the somewhat strange
very localized hotfix of prefixing - by \string at the one spot where
we need it to be its normal self. Hence this PR.
Fix #1734.
|