summaryrefslogtreecommitdiff
path: root/tests/examplefiles/lilypond
Commit message (Collapse)AuthorAgeFilesLines
* LilyPond: slightly improve lexing (#2283)Werner Lemberg2022-11-272-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Update goldens for previous commitJean Abou Samra2022-08-151-3/+3
| | | | Very sorry about this!
* add missing change for lilypond testsGeorg Brandl2022-06-211-192/+192
|
* LilyPond: fix 'maybe-subproperties' state for properties containing dashes ↵Jean Abou-Samra2022-03-312-0/+13
| | | | (#2099)
* LilyPond: fix wrong lexing of name containing builtin name (#2071)Jean Abou-Samra2022-03-072-37/+14
| | | | | Non-builtin names were scanned character by character, possibly causing recognition of a suffix as builtin.
* Merge branch 'master' of github.com:pygments/pygments; branch 'lexers_ijkl' ↵Matthäus G. Chajdas2022-02-201-38/+38
|\ | | | | | | of https://github.com/blu-base/pygments into blu-base-lexers_ijkl
| * Whitespace token for lisp lexersSebastian Engel2022-01-061-34/+34
| |
* | Scheme: support datum commented with #;Jean Abou Samra2022-02-082-4/+11
| | | | | | | | | | | | Previously, #; awaited an S-expression but could not cope with a simple datum like a number literal. While at it, also support R6RS brackets for S-expressions.
* | Scheme: autogenerate lists of builtinsJean Abou Samra2022-02-081-4/+6
|/ | | | | | | This enriches the space of recognized builtins. Note that this also fixes the space after a builtin being included in the token.
* Some LilyPond updates (#2001)Jean-Abou-Samra2021-12-282-29/+68
| | | | | | | | | | | | | - 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 (#1845)Jean-Abou-Samra2021-11-212-0/+716
* 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