Commit Graph

6544 Commits

Author SHA1 Message Date
Martin 7169cd83e5
enh(bash) `$pattern`: allow numbers after the first character (#3494)
* Update the pattern regex for the bash language

Fixes: https://github.com/highlightjs/highlight.js/issues/3489 ((bash) keywords with numbers are not recognized)

With the new regex, also numbers INSIDE the pattern is allowed. Before, `a2enmod` would not have been recognized. Now it gets properly recognized.

For the details of the test results see: https://github.com/highlightjs/highlight.js/issues/3489#issuecomment-1050938466
2022-02-27 02:23:13 -05:00
Josh Goebel fd30701516 (chore) blame ignore eslint --fix 2022-02-25 13:02:37 -05:00
Josh Goebel d64f68e8aa (chore) eslint --fix src/languages/*.js 2022-02-25 12:59:36 -05:00
Doug Torrance 2b9b7c0bb2
(grammars) Add 3rd-party support for Macaulay2 (#3486)
Macaulay2 is a software system devoted to supporting research in
algebraic geometry and commutative algebra.

https://faculty.math.illinois.edu/Macaulay2/
2022-02-21 17:50:02 -05:00
dev-nicolaos 90b339de1e
enh(css): add support for more properties (#3484)
* enh(css): add support for more properties 

Adds background-blend-mode, all the scrollbar-* properties, and the logical versions of all the sizing, padding, border, and margin properties.

Reference:
- https://developer.mozilla.org/en-US/docs/Web/CSS/background-blend-mode
- https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties
- https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-width
- https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color
- https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-gutter

* Update CHANGES.md

Co-authored-by: Josh Goebel <me@joshgoebel.com>
2022-02-17 13:52:47 -05:00
Vladimir Jimenez e220158cdd
Update colors (dev dep) to new maintained version (#3485) 2022-02-16 23:00:19 -05:00
Josh Goebel 8aef7b6e05 (chore) simplify symbol rule and fix tests 2022-02-15 12:58:47 -05:00
Josh Goebel 460d7d6a92 (chore) fix auto-detect to accomodate graphql 2022-02-15 12:58:47 -05:00
John Foster 48e00fb812 add(graphql) Add `graphql` to supported languages 2022-02-15 12:58:47 -05:00
Josh Goebel 87a588b452
(chore) bump deps (#3480) 2022-02-15 11:04:28 -05:00
Mark Ericksen ae7ff9b6fe
(elixir) add `defguard`, highlight module names as titles (#3478) 2022-02-15 11:03:59 -05:00
Shane Osbourne 891a2ffc73
(chore) add sideEffects: false to enable tree-shaking in esbuild & others 2022-02-09 15:27:28 -05:00
Josh Goebel 2422a5da11
fix(markdown) Handle `***Hello world***` without breaking (#3457) 2022-02-09 15:19:03 -05:00
Josh Goebel 777eb9172f (chore) DRY up php grammar just a little 2022-02-09 15:11:37 -05:00
Josh Goebel 0d41d30052 enh(php) support CSSCase attribute naming 2022-02-09 15:11:37 -05:00
Josh Goebel 516002efff refactor, security issues 2022-02-09 15:11:37 -05:00
Wojciech Kania 519e9fae56 enh(php) Add support for Attributes 2022-02-09 15:11:37 -05:00
Josh Goebel 70ac79cdbb
fix(java) prevent false variable init on `else` (#3455) 2022-02-01 03:15:43 -05:00
Bradley Mackey d8cf9623f7
(ci) min change threshold for size report (#3401) 2022-01-31 23:48:42 -05:00
Henri 5b3a3e6728
(themes) Add `tokyo-night-dark` (#3467) 2022-01-31 23:43:55 -05:00
Sebastian Neubauer 5e1e37c14b
enh(llvm) Improve number support, add `char.escape` (#3471)
- Numbers are allowed to have a leading + sign
- Hex floats can have a format specified after the 'x'
- Strings cannot escape quotes with backslashes, so a '\"' ends a string
- Add support for `\00` style `char.escape` inside strings
2022-01-30 12:16:35 -05:00
Josh Goebel 8d38e239ec (chore) simplify brainfuck grammar 2022-01-30 00:16:04 -05:00
LyricLy 4577894866 fix(brainfuck) fix highlighting of initial ++/-- 2022-01-30 00:16:04 -05:00
anydonym d302ec44df
Minor change to TypeScript types and TypeScript-specific keywords (#3466)
- Minor TypeScript primitive types addition and removal of "typedef" TypeScript-specific keyword. There is no such keyword as "typedef".
- "enum" is not a type in TypeScript, but it is, indeed, a TypeScript-specific keyword. 
- Added "override" TS-specific keyword and "unknown" TypeScript type.
2022-01-22 02:31:23 -05:00
Melissa cabd43db58
fix(angelscript) Fix highlighting of int8, int16, int32, int64 (#3464)
* Swap order of int/uint and their explicit type variations to fix incomplete highlighting
2022-01-19 16:48:22 -05:00
wkania 112135fb06
enh(php) named arguments and fix php constants (#3459)
* enh(php) named arguments
* fix(php) PHP constants
2022-01-11 19:26:52 -05:00
Felipe Contreras 8a8835b65a
themes: add new felipec theme (#3441)
* themes: add new felipec theme

Autogenerated with vim-felipec.
2022-01-07 01:04:43 -05:00
Josh Goebel 2d0e7c1094 (chore) release 10.4.0 2022-01-06 09:56:23 -05:00
John Foster 9598caafaf enh(arcade) Add missing keywords for Arcade v1.16
Signed-off-by: Josh Goebel <me@joshgoebel.com>
2022-01-04 19:13:31 -05:00
Josh Goebel c88890c57c chore(arcade) eslint --fix, explode keywords 2022-01-04 19:13:31 -05:00
wkania e828d694b4
enh(php) Left and right-side of double colon (#3422)
- declare and use `IDENT_RE` for valid labels instead of `w+`
- declaration of PHP [constants](https://www.php.net/manual/en/language.oop5.constants.php) were not highlighted. Now they use the same class as variables. 
- enum and constant reference were not highlighted. Now they use the same class as variables. 
- Class name references are highlighted as `variable.language`.
[class](https://wiki.php.net/rfc/class_name_literal_on_object) is a special case of the constant, it's also a reserved keyword.
- left-side class name highlighting
2022-01-04 17:50:39 -05:00
Felipe Contreras 0e3735ac62
tools: check-theme: consider background-color too (#3449)
* tools: check-theme: consider `background-color` too

This is the precise property we want to check.
2022-01-01 18:17:26 -05:00
John Foster 2e344f51c3
Update CHANGES.md (#3447) 2021-12-30 18:12:41 -05:00
John Foster 360f5c42c2
Add curl to supported languages (#3445) 2021-12-30 17:35:33 -05:00
Josh Goebel 7355c13512
fix(cpp) `vector<<` false positive as template begin (#3438) 2021-12-29 07:01:45 -05:00
Pegasis c0138d99b4
(themes) Add new `intellij-light` theme (#3433) 2021-12-27 09:16:40 -05:00
Fons van der Plas c5ff49e7cf
fix(julia-repl) `aliases` was not in correct object (#3432) 2021-12-22 08:32:27 -05:00
Angelo Verlain 413425d4c7
(chore) Fix typo in README on "good first issue" badge (#3431)
When  you clicked the badge it took you to "beginner friendly" instead of "good first issue"
2021-12-18 08:23:11 -05:00
Wojciech Kania 093b67f829 (chore) Replace className with scope and use match 2021-12-16 16:06:06 -05:00
Wojciech Kania bc5a10f1ca enh(php) add PHP 8.1 keywords 2021-12-16 16:06:06 -05:00
Josh Goebel 4284811b74 enh(cal) simplify using multi-matchers 2021-12-15 20:05:04 -05:00
Josh Goebel 06c57ce3eb enh(x++) title.class.inherited for X++ 2021-12-15 20:05:04 -05:00
Josh Goebel 61146b169c (chore) fix checkautodetect, fix elixir autodetect conflict 2021-12-15 20:05:04 -05:00
Josh Goebel 1758dcaf0e (chore) title.class and other monkey cleanup 2021-12-15 20:05:04 -05:00
Josh Goebel e609be9024 (chore) title.class and other groovy cleanups 2021-12-15 20:05:04 -05:00
Josh Goebel df3db6b82f (chore) title.class for capnproto 2021-12-15 20:05:04 -05:00
Josh Goebel 38a6701c6e (chore) improve oxgene
- remove unnecessary `class` scope
- add `;` as punctuation
- remove deprecated `function` scope
- use `title.function` for function names
2021-12-15 20:05:04 -05:00
Josh Goebel 710ab05cc4 (chore) title.class and cleanup RSL 2021-12-15 20:05:04 -05:00
Josh Goebel 2b679bc655 (chore) title.class for protobuf 2021-12-15 20:05:04 -05:00
Josh Goebel d681045da3 (chore) title.class for Livescript 2021-12-15 20:05:04 -05:00