summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Address review feedback.task/improve-crlf-handlingMatthäus G. Chajdas2020-09-192-3/+6
| | | | | | * Remove || true * Fix docs * Print the first offending file name
* Improve error checking.Matthäus G. Chajdas2020-09-182-31/+31
| | | | | | * Include the external folder and check that. * Include .bashcomp files. * Use the correct CR/LF on the checker itself.
* Add a check for CR/LF in files.Matthäus G. Chajdas2020-09-182-0/+31
| | | | | | This can occur when checking out things on Windows, and it breaks the tarball. This adds a script to check for the presence of CR/LF which exits early if anything gets found.
* Update changelog, make "make clean" clean more thingsGeorg Brandl2020-09-172-4/+7
|
* fix regression in JSON lexer, bump to 2.7.12.7.1Georg Brandl2020-09-174-12/+20
| | | | Fixes #1544
* Update CHANGES.Matthäus G. Chajdas2020-09-121-0/+4
|
* Preparing 2.7.0 release.2.7.0Matthäus G. Chajdas2020-09-122-2/+2
|
* Update CHANGES.Matthäus G. Chajdas2020-09-081-1/+1
|
* all: remove "u" string prefix (#1536)Georg Brandl2020-09-0876-3745/+3632
| | | | | | | | | | | * 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
* Update CHANGES.Matthäus G. Chajdas2020-09-081-2/+8
|
* Fix a Windows/PyPy3 test failure (#1533)Kurt McKee2020-09-071-1/+8
| | | | | | | PyPy3 on Windows has a test failure in `test_cmdline:test_outfile()` when trying to unlink the temporary output file. The root cause is that `cmdline:inner_main()` does not explicitly close the file that it opens, and PyPy3 isn't auto-closing the file when `inner_main()` returns. This prevents the file from being unlinked, and the test case fails.
* fennel: fixup string regexGeorg Brandl2020-09-071-1/+1
|
* Avoid catastrophic backtracking.Phil Hagelberg2020-09-071-1/+1
| | | | as advised in https://github.com/pygments/pygments/pull/1535/files/f581f2892154e8e4ed673ab940abf8af43ebe66b#r484028618
* Add support for # as lambda shorthand.Phil Hagelberg2020-09-071-0/+3
|
* Remove old python-2-style strings.Phil Hagelberg2020-09-071-17/+17
|
* Update Fennel keywords to catch up to version 0.6.0.Phil Hagelberg2020-09-072-54/+104
| | | | | | Remove support for single-quoted strings. Update fennelview example to latest version of library.
* all: revert changes of [a-zA-Z0-9_] to \wGeorg Brandl2020-09-0713-51/+52
| | | | ... which is not equivalent in Unicode mode
* Update mapfilesGeorg Brandl2020-09-061-2/+2
|
* all: use argumentless super()Georg Brandl2020-09-0613-152/+82
|
* Add comment.Matthäus G. Chajdas2020-09-061-0/+3
| | | | Add a quick reminder that Javascript doesn't need integers.
* Overhaul Javascript numeric literals (#1534)Kurt McKee2020-09-063-75/+162
| | | | | | | | | | | | | | | | | | | | | | * Rename the "Javascript" tests to reflect that they are for CoffeeScript This change also modifies the module docstring to reflect the file's purpose. * Overhaul the Javascript numeric literal parsing Fixes #307 This patch contains the following changes: * Adds 50+ unit tests for Javascript numeric literals * Forces ASCII numbers for float literals (so, now reject `.୪`) * Adds support for Javascript's BigInt notation (`100n`) * Adds support for leading-zero-only octal notation (`0777`) * Adds support for scientific notation with no significand (`1e10`) Numeric literal parsing is based on information at: * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures
* Simplify regex.Matthäus G. Chajdas2020-09-061-1/+1
|
* Overhaul the MySQL lexer (#1527)Kurt McKee2020-09-065-57/+1817
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Overhaul the MySQL lexer Fixes #975, #1063, #1453 Changes include: Documentation ------------- * Note in the lexer docstring that Oracle MySQL is the target syntax. MariaDB syntax is not a target (though there is significant overlap). Unit tests ---------- * Add 140 unit tests for MySQL. Literals -------- * Hexadecimal/binary/date/time/timestamp literals are supported. * Integer mantissas are supported for scientific notation. * In-string escapes are now tokenized properly. * Support the "unknown" constant. Comments -------- * Optimizer hints are now supported, and keywords are recognized and tokenized as preprocessor instructions. * Remove nested multi-line comment support, which is no longer supported in MySQL. Variables --------- * Support the '@' prefix for variable names. * Lift restrictions on characters in unquoted variable names. (MySQL does not impose a restriction on lead characters.) * Support single/double/backtick-quoted variable names, including escapes. * Support the '@@' prefix for system variable names. * Support '?' as a variable so people can demonstrate prepared statements. Keywords -------- * Keyword / data type / function are now in a separate, auto-updating file. * Support 25 additional data types (including spatial and JSON types). * Support 460 additional MySQL keywords. * Support 372 MySQL functions. Explicit function support resolves a bug that causes non-function items to be treated as functions simply because they have a trailing opening parenthesis. * Support exceptions for the 'SET' keyword, which is both a datatype and a keyword depending on context. Schema object names ------------------- * Support Unicode in MySQL schema object names. * Support parsing of backtick-quoted schema object name escapes. (Escapes do not produce a distinct token type at this time.) Operators --------- * Remove non-operator characters from the list of operators. * Remove non-punctuation characters from the list of punctuation. * Cleanup items based on feedback * Remove an unnecessary optional newline lookahead for single-line comments
* all: use yield from (#1537)Georg Brandl2020-09-0629-164/+93
|
* CI: add regexlint runGeorg Brandl2020-09-062-2/+14
|
* update changelogGeorg Brandl2020-09-061-0/+4
|
* all: fixup some file headersGeorg Brandl2020-09-068-52/+50
|
* all: fixup remaining regexlint warningsGeorg Brandl2020-09-0646-333/+338
|
* angular2: fix missing bygroups() assignmentGeorg Brandl2020-09-061-2/+2
|
* Merge pull request #1530 from btashton/arm-gasGeorg Brandl2020-09-061-1/+1
|\ | | | | Add support for ARM constant notation in GAS lexer
| * Add support for ARM constant notation in GAS lexerBrennan Ashton2020-09-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GNU supports ARM syntax which uses notation like #1 for constants. Currently this is handled like a comment which is incorrect. Take the case of: ldr r0, [r1, #0] Right now the #0] would be treated like a comment and looks very poor. Was referenced in issue #627 Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
* | Remove Python 2 environments from the tox environment list (py27, pypy) (#1532)Kurt McKee2020-09-041-1/+1
| |
* | Add lexer for PsySH console for PHP (#1438)Ben Ramsey2020-09-043-4/+105
| | | | | | | | | | This lexer is based on the PythonConsoleLexer and provides the ability to highlight console input and output for PsySH, a developer console and REPL for PHP. See https://psysh.org.
* | Update CHANGES and language list.Matthäus G. Chajdas2020-09-032-3/+18
|/
* demo: rebuild WASM with every pushGeorg Brandl2020-09-014-9/+10
|
* demo: show Pygments version in useGeorg Brandl2020-09-012-0/+4
|
* changelog: fix markupGeorg Brandl2020-09-011-1/+1
|
* more explicitly define escape sequencies in JsonLexer (fix #1065) (#1528)Nick Gerner2020-08-312-2/+30
| | | | | * more explicitly define escape sequencies in JsonLexer (fix #1065) * adding test coverage for #1065
* Merge pull request #1521 from rugk/patch-1Georg Brandl2020-08-241-2/+2
|\
| * Make group optionalrugk2020-08-231-2/+2
| |
| * Fix HttpLexer to allow 2.0rugk2020-08-231-2/+2
| | | | | | | | | | According to [RFC7540 (section 3.5)](https://tools.ietf.org/html/rfc7540#section-3.5), if I interpret it correctly, it actually even _has to_ start with `2.0` and not `2`. As HTTP/3 is also defined there, I have not looked into how that has to be used/started.
* | Spell out that we want lexers in separate files.Matthäus G. Chajdas2020-08-231-1/+5
| |
* | docs: clarify cmdline invocation in lexer dev sectionGeorg Brandl2020-08-231-3/+6
|/ | | | closes #1518
* Fix cmake header (#1491)Thomas Aglassinger2020-08-232-1/+35
| | | | | | | | | * Fixed guessing of CMake by header. * Version number can have multiple digits. * Tabs are handled as white space. * Trailing comments are ignored. * Cleaned up regex to detect CMake header.
* Add lexer for Pointless (#1494)Avery N. Nortonsmith2020-08-235-0/+103
| | | | | | | | | | | | | | | | | | | * add lexer for pointless * lexer docstring formatting * added link to languages doc * update authors * update version * added double string * added upval keyword * simplify ptls example code * rename doubleString -> multiString
* Fix #1502.Matthäus G. Chajdas2020-08-221-4/+5
| | | | | Single-quoted strings were handled differently in the Ruby lexer compared to double-quoted strings, leading to catastrophic backtracking.
* Update copyright year (fixes #1514.)Matthäus G. Chajdas2020-08-22281-285/+285
|
* Update CHANGES.Matthäus G. Chajdas2020-08-221-0/+4
|
* Merge pull request #1480 from ↵Matthäus G. Chajdas2020-08-221-3/+4
|\ | | | | | | | | Noordsestern/Noordsestern-robotframework-tasks-table [Robot Framework] Add syntax for tasks
| * typoNoordsestern2020-06-151-1/+1
| |