summaryrefslogtreecommitdiff
path: root/pygments/lexers/jvm.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|\ \
| * | Fix remaining 'DeprecationWarning: invalid escape sequence' occurrences in ↵Andreas Kloeckner2018-06-191-3/+3
| |/ | | | | | | lexer files
* | Clojure: extend valid_name to contain "|".Georg Brandl2017-01-291-1/+1
|/
* Copyright update.Georg Brandl2017-01-221-1/+1
|
* Add support for partials and path segments for Handlebars.Christian Hammond2016-11-041-0/+1573
This introduces support for some missing features to the Handlebars lexer: Partials and path segments. Partials mostly appeared to work before, but the `>` in `{{> ... }}` would appear as a syntax error, as could other components of the partial. This change introduces support for: * Standard partials: `{{> partialName}}` * Partials with parameters: `{{> partialName varname="value"}}` * Ddynamic partials: `{{> (partialFunc)}}` * Ddynamic partials with lookups: `{{> (lookup ../path "partialName")}}` * Partial blocks: `{{> @partial-block}}` * Inline partials: `{{#*inline}}..{{/inline}}` It also introduces support for path segments, which can reference content in the current context or in a parent context. For instance, `this.name`, `this/name`, `./name`, `../name`, `this/name`, etc. These are all now tracked as variables.