| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
|
| | | |
|
|\ \ \
| |/ /
|/| |
| | | |
https://github.com/kurtmckee/pygments into kurtmckee-issue-253-ruby-unicode
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fixes #253
This patch contains these changes:
* Add 50+ new Ruby tests for method name/operator override matching.
* Unicode method names are now supported (#253).
* `=` method name postfixes are now supported.
* These operator overrides are now supported:
`<`, `<=`, `!` `!@`, `~@`, `!`, `!=`, `!~`, `=~`
* The `<>` "operator" override is removed. It appears that this was
a typo in the regular expression (`<=?>` should have been `<=>?`).
Syntax verified with https://docs.ruby-lang.org/en/2.7.0/syntax/methods_rdoc.html
|
| | |
| | |
| | |
| | | |
We identify more keywords now thanks to #1677.
|
| | |
| | |
| | |
| | |
| | | |
* Supports single quote strings in AutoItLexer
* Adds test case for autoIt single strings
|
| | |
| | |
| | |
| | | |
This adds a newline and makes sure the files round-trip correctly.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Imported from:
https://github.com/nikeee/pygments-lexer-graphviz
See:
https://github.com/pygments/pygments/issues/731
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
* Add J lexer tests for operator ?
* Make J lexer match ? as an operator
|
| | |
| | |
| | |
| | |
| | | |
* Add support for anchored line numbers in inline rendering mode
* Fix tests rendering anchored line number in inline mode
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Clarify recognition of "command form" by MATLAB parser.
Expand a bit the explanation; remove an unnecessary non-capturing group,
replace \s+ by \s at the end (we just need to check for the presence of
a space).
* MATLAB: Correctly parse 1./x as (1)(./)(x).
|
| | |
| | |
| | |
| | | |
LESS lexer didn't handle single-line comments.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
mathiasertl-master
Resolve conflicts, move tests to snippets, regenerate example files.
# Conflicts:
# tests/test_shell.py
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* This commit implements a basic lexer for the AMDGPU ISA definition.
* Updated comment.
* Updated comment.
* Tried to fix case-sensitive issue.
* Updated AUTHORS file.
* Added shader unit test for the AMD ISA Parser.
* Renamed AMDGCN lexer to AMDGPU.
* Renamed example file.
* Renames.
Co-authored-by: Thomas Symalla <root@SEUCHOMAT.localdomain>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* cmdline: port to argparse
* cmdline: adapt the argparse help formatter to actually take terminal width into account
* Update based on review feedback.
* Extract "is_only_option" method
* Check -L argument to be a "known good" argument
Co-authored-by: Matthäus G. Chajdas <dev@anteru.net>
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
They are ok in small snippets to demonstrate error cases.
Also recode all examplefiles to UTF-8.
|
| | | |
| | | |
| | | |
| | | | |
docs to point to both snippets and examplefiles.
|
| | | | |
|
| | | |
| | | |
| | | | |
Co-authored-by: Georg Brandl <georg@python.org>
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* WIP: Add failing test for a matlab class with properties.
* Add some missing keywords
* Add leading \s* matchers to things above the command form regex, as it tends to swallow keywords otherwise.
* Add support for the special 'properties' block syntax.
* Fix apparent infinite loop when given garbage input.
* Use includes to clean up some of my copypasta.
* Fix negative lookahead when there's more than one space between operators.
* Use Whitespace not Text for spaces; combine adjacent whitespace.
* Add support for declarative property constraints.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* introduce and apply rfstringescape
* add unit test for raw f-strings
* add further tests
* fix comment
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
constant returns from analyse_text are not useful.
|
|/ / / |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* improve fenced code recognition for markdown lexer
* improve inline code detection
* improve detection of some Markdown keywords
* remove Markdown recognition of code indented by 4 spaces as reliable detection is not possible with regex
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* crystal: drop all classes from builtins; these aren't normally highlighted
("normally" meaning all other highlighter tools)
* crystal: fix percent-strings, drop Ruby-specific arbitrary delimiters
It seems that Ruby supports strings such as `%*text*` where `*` can be anything. But Crystal never had anything like that. It does, however, keep `%|text|`, so add a case for that.
* crystal: update keywords and builtins
* crystal: fix string literals and escape sequences
Update list of escapes. Support Unicode escape sequences.
Also remove the Ruby-specific `:@foo` symbol syntax, Crystal doesn't have it.
* crystal: uppercase identifiers aren't always constants
Make `FOO::Bar` be highlighted like `Foo::Bar` would be, rather than like `FOO`
* crystal: annotations can be namespaced
Highlight the entire inside part of `@[Foo::Bar]`, not just the `Foo` part
(these used to be named 'attributes' but the official name is 'annotations' now, so I also change that)
* fixup! crystal: fix percent-strings, drop Ruby-specific arbitrary delimiters
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Unicode support for Coq
Catch-all lexing for `Name.Builtin.Pseudo`, as in the lean lexer.
This fixes #678.
* Coq lexer: improve `analyse_text`
* Add a test for Coq
|
|\ \ \
| | | |
| | | |
| | | | |
felixhao28-master
|
| | | |
| | | |
| | | | |
Co-authored-by: Mestery <48163546+Mesteery@users.noreply.github.com>
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
fixes #1645
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
straight forward
|
|/ / / / |
|
| | | | |
|
| | | | |
|