| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Handle `--` and `__` as `Token.Punctuation` only if preceded by
whitespace:
```
<whitespace> -- ==> hyphen (in lyrics mode)
<whitespace> __ ==> extender line (in lyrics mode)
-- ==> tenuto, neutral attachment (in music mode)
__ ==> portato, down attachment (in music mode)
```
* Handle `-` followed by a number as `Token.Number` only if preceded by
whitespace. This is purely heuristic, derived from the coding style shown
in the LilyPond manuals.
```
<whitespace> -3 ==> integer (e.g., as a function argument)
-3 ==> fingering instruction
```
* Add forgotten `\maxima` note duration.
* Some legibility improvements by using verbose mode for regular
expressions.
* Some comment additions and fixes.
* Update tests.
|
| |
|
| |
|
|
|
|
| |
(#2099)
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Non-builtin names were scanned character by character, possibly
causing recognition of a suffix as builtin.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Add pitch language names to builtins. They are not highlighted
specially in the default style, but can be in a custom style.
- Refactor matching of builtins in order to avoid confusion between
dim chord modifier and \dim dynamic command.
- Support grob subproperties.
- Add segno repeat type.
- While at it, update builtins for latest version.
|
| |
|
|
* Add lexer and style for LilyPond
GNU LilyPond is a text-based music typesetter. Because its concepts
are completely different from programming languages, this adds
a special-purpose to highlight the special tokens.
The SchemeLexer is expanded to gain the ability of detecting when
one expression stops. LilyPondLexer subclasses SchemeLexer.
Builtins (the most important part) are generated with a script
put in external/ (as was already done for Lasso).
As part of this change, the CPSALexer is made no longer to
inherit from SchemeLexer. The inheritance was unused anyway.
* Fixup: translators names have underscores
* Fixup: avoid duplicate builtins
* Fixup: update goldens
* Fixup: typo
* Fixup: add missing tokens to style
* Fixup: update lexer comments
* Fixup: Tentative style adjustments
* Fixup: move test file to examplefiles/
* Fixup: miscellaneous fixes (to be finished)
* Fixup: escape all braces
* Fixup: use Text, not Whitespace
* Fixup: fixes for lexing and style
* Fixup: update goldens!
* Fixup: also test alist assignments
* Fixup: recognize escape sequences in strings
* Fixup: use Comment.Single
* Fixup: Whitespace, not Text!
* Fixup: fix pitch parsing
* Fixup: update comment
* Fixup: remove redundant re.UNICODE
|