summaryrefslogtreecommitdiff
path: root/pygments/lexers/jvm.py
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2023.Matthäus G. Chajdas2023-03-291-1/+1
|
* Add value modifier for Kotlin (#2142)Derek Ellis2022-05-201-1/+1
|
* java multiline highlighting based on issue 1858 (#2132)VishalN72022-05-101-0/+6
| | | Co-authored-by: Chung Tai <chungtai456@gmail.com>
* Rework URL information in lexers.Matthäus G. Chajdas2022-03-201-17/+29
| | | | | | | | This commit adds a new url field to a lexer, which can be used to link to the language website, instead of relying on having the link in either languages.rst or the docstring of the lexer. Additionally, it changes the languages.rst file to auto-generate the list of lexers from the actual source code, using the provided URL.
* Merge branch 'master' of github.com:pygments/pygments; branch 'lexers_ijkl' ↵Matthäus G. Chajdas2022-02-201-113/+113
|\ | | | | | | of https://github.com/blu-base/pygments into blu-base-lexers_ijkl
| * Whitespace token for sarl lexerSebastian Engel2022-01-061-7/+7
| |
| * Whitespace token for jasmin lexerSebastian Engel2022-01-061-9/+9
| |
| * Whitespace token for golo,pig,xtend lexersSebastian Engel2022-01-061-17/+17
| |
| * Whitespace token for kotlin lexerSebastian Engel2022-01-061-30/+30
| |
| * Whitespace token for scala lexerSebastian Engel2022-01-061-38/+39
| |
| * Whitespace token for jvm lexerSebastian Engel2022-01-061-12/+11
| |
* | Remove now redundant re.UNICODE and (?u) (#2058)Jean Abou-Samra2022-01-311-6/+6
| |
* | Highlight Clojure ratios as Numbers (#2042)Tom Fryers2022-01-311-0/+1
| | | | | | | | | | * Highlight Clojure ratios as Numbers * Fix Number parsing order
* | Add support for .cljc clojure file extension (#2043)Danny Freeman2022-01-251-1/+1
| |
* | Happy new year.Georg Brandl2022-01-251-1/+1
| |
* | Fix typos (#2030)Kian-Meng Ang2022-01-181-1/+1
|/
* Java: fix lexing of 'record' soft keyword (#2018)amitkummer2022-01-031-2/+4
| | | | | | | | | | | | | | | | * Java: fix lexing of 'record' soft keyword Refactor the Java lexer to treat `record` as a soft keyword. Previously, the lexer assumed record is a reserved word, even though it is a soft keyword which can be used as a variable name. This refactor lexes record as a keyword only if it appears at the beggining of the line, with some potential other keywords like public and private preceding it. * Remove repetition in capture group * Update test output
* yield keyword in Java (#1941)xtay22021-11-031-1/+1
| | | | Added the yield keyword from Java 13. https://docs.oracle.com/javase/specs/jls/se13/preview/switch-expressions.html
* Add new Java syntax: sealed classes and record types. (#1902)Benjamin Peterson2021-09-291-2/+2
|
* Java: do not lex whitespace as Label, do not lex "default" as LabelGeorg Brandl2021-07-311-1/+3
| | | | Fixes #1851
* add min to analyse text for jasmin (#1619)Carlos Henrique Guardão Gandarez2021-07-241-1/+1
|
* Scala lexer: Add support for the '\' operator (#1857)Luka Peschke2021-07-091-1/+1
| | | This operator is defined by json4s, which is one of scala's most popular JSON libraries.
* groovy lexer: detect quoted function names (#1765)Alison Winters2021-05-021-6/+12
| | | | | | | * groovy lexer: parse keywords before function names like java * groovy lexer: detect quoted function names * changes: update groovy lexer
* Rewrite Scala lexer for Scala 3 (#1694)Maxime Kjaer2021-03-011-194/+246
|
* Improve Kotlin lexer (#1699)Ilya Zorin2021-02-061-42/+105
|
* Run pyupgrade across codebase to modernize syntax and patterns (#1622)Jon Dufresne2021-01-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | pyupgrade is a tool to automatically upgrade syntax for newer versions of the Python language. The project has been Python 3 only since 35544e2fc6eed0ce4a27ec7285aac71ff0ddc473, allowing for several cleanups: - Remove unnecessary "-*- coding: utf-8 -*-" cookie. Python 3 reads all source files as utf-8 by default. - Replace IOError/EnvironmentError with OSError. Python 3 unified these exceptions. The old names are aliases only. - Use the Python 3 shorter super() syntax. - Remove "utf8" argument form encode/decode. In Python 3, this value is the default. - Remove "r" from open() calls. In Python 3, this value is the default. - Remove u prefix from Unicode strings. In Python 3, all strings are Unicode. - Replace io.open() with builtin open(). In Python 3, these functions are functionally equivalent. Co-authored-by: Matthäus G. Chajdas <Anteru@users.noreply.github.com>
* Fix several exponential/cubic complexity regexes found by Ben Caller/DoyensecGeorg Brandl2021-01-111-1/+0
|
* Bump copyright year.Matthäus G. Chajdas2021-01-031-1/+1
|
* all: weed out more backtracking string regexesGeorg Brandl2020-12-251-8/+8
|
* fix a lot more backtracking string regexesGeorg Brandl2020-12-251-7/+7
|
* sarl: fix indentationGeorg Brandl2020-12-251-51/+56
|
* Update jvm.py (#1587)Boris Kheyfets2020-12-051-1/+2
| | | Added support for kotlin scripts.
* Fix a catastrophic backtracking bug in JavaLexer (#1594)Kurt McKee2020-11-091-1/+8
| | | | | | | * JavaLexer: Demonstrate a catastrophic backtracking bug * JavaLexer: Fix a catastrophic backtracking bug Closes #1586
* all: remove "u" string prefix (#1536)Georg Brandl2020-09-081-141/+141
| | | | | | | | | | | * all: remove "u" string prefix * util: remove unirange Since Python 3.3, all builds are wide unicode compatible. * unistring: remove support for narrow-unicode builds which stopped being relevant with Python 3.3
* all: use yield from (#1537)Georg Brandl2020-09-061-2/+1
|
* all: fixup remaining regexlint warningsGeorg Brandl2020-09-061-2/+2
|
* Update copyright year (fixes #1514.)Matthäus G. Chajdas2020-08-221-1/+1
|
* Same treatment for `forSome`Paolo G. Giarrusso2019-11-291-2/+2
|
* Only highlight `type` as a whole wordPaolo G. Giarrusso2019-11-291-2/+2
|
* Fix #972: Resurrect patch from bug trackerPaolo G. Giarrusso2019-11-291-6/+11
| | | | | | | Issue: Scala lexer incorrectly highlights code containing type parameters. This is the patch from https://github.com/pygments/pygments/issues/972#issuecomment-526852069, tested by https://github.com/pygments/pygments/issues/972#issuecomment-526852076.
* Update project to use modern Python features and idiomsJon Dufresne2019-11-251-4/+4
| | | | | | | | | | Run the pyupgrade tool across the project to use modern language features. - Use set literals - Use dict comprehension - Remove unnecessary numeric indexes in format string - Remove unnecessary extra parentheses
* Java: make it less operator-heavyGeorg Brandl2019-11-241-3/+5
| | | | Fixes #987
* Java: update URLGeorg Brandl2019-11-241-1/+1
|
* Java: support "var" contextual keyword (bitbucket PR #742)Georg Brandl2019-11-241-0/+5
| | | | Closes #1101
* Fixup all headers and some more minor problems.2.4.2Georg Brandl2019-05-281-1/+1
|
* some fixes to the kotlin lexer to work with the corda kolin codebasenimmajbb2019-04-011-3/+30
|
* Update SARL added date, regenerate mapping.Matth?us G. Chajdas2018-12-161-1/+1
|
* Merged in sgalland/pygments-main (pull request #717)Anteru2018-12-161-1/+55
|\ | | | | | | Add the lexer for the SARL language.
| * Add the lexer for the SARL language.St?phane GALLAND2017-04-041-1/+55
| |
* | Merge heads.Georg Brandl2018-11-281-3/+3
|\ \