Skip to content

Improve llvm syntax highlighting #3471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2022
Merged

Improve llvm syntax highlighting #3471

merged 1 commit into from
Jan 30, 2022

Conversation

Flakebi
Copy link
Contributor

@Flakebi Flakebi commented Jan 28, 2022

Changes

  • 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

Checklist

  • Added markup tests, or they don't apply here because...
  • Updated the changelog at CHANGES.md (it’s a pretty small fix, not sure if this needs to be mentioned?)

@joshgoebel
Copy link
Member

(it’s a pretty small fix, not sure if this needs to be mentioned?)

We mention almost all fixes. :)

- 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
@Flakebi
Copy link
Contributor Author

Flakebi commented Jan 30, 2022

Thanks! I fixed your comment and added a changelog entry. (diff of my changes: https://github.com/highlightjs/highlight.js/compare/be47761cb54d2bbeaf16006bb962df1b6f4eecd9..3ee1056de807099140def2e1e362cd6e2ae4853d)

@joshgoebel
Copy link
Member

Filename Size Change
./build/es/core.min.js 8 kB +1 B (0%)
./build/es/highlight.min.js 8 kB +1 B (0%)
./build/es/languages/llvm.min.js 1.44 kB +7 B (0%)
./build/highlight.min.js 8.04 kB -1 B (0%)
./build/languages/llvm.min.js 1.45 kB +8 B (+1%)

@joshgoebel joshgoebel merged commit 5e1e37c into highlightjs:main Jan 30, 2022
@joshgoebel
Copy link
Member

@Flakebi Thanks so much!

@Flakebi Flakebi deleted the llvm branch January 30, 2022 20:10
brainlid added a commit to brainlid/highlight.js that referenced this pull request Feb 11, 2022
* master: (816 commits)
  (chore) add sideEffects: false to enable tree-shaking in esbuild & others
  fix(markdown) Handle `***Hello world***` without breaking (highlightjs#3457)
  (chore) DRY up php grammar just a little
  enh(php) support CSSCase attribute naming
  refactor, security issues
  enh(php) Add support for Attributes
  fix(java) prevent false variable init on `else` (highlightjs#3455)
  (ci) min change threshold for size report (highlightjs#3401)
  (themes) Add `tokyo-night-dark` (highlightjs#3467)
  enh(llvm) Improve number support, add `char.escape` (highlightjs#3471)
  (chore) simplify brainfuck grammar
  fix(brainfuck) fix highlighting of initial ++/--
  Minor change to TypeScript types and TypeScript-specific keywords (highlightjs#3466)
  fix(angelscript) Fix highlighting of int8, int16, int32, int64 (highlightjs#3464)
  enh(php) named arguments and fix php constants (highlightjs#3459)
  themes: add new felipec theme (highlightjs#3441)
  (chore) release 10.4.0
  enh(arcade) Add missing keywords for Arcade v1.16
  chore(arcade) eslint --fix, explode keywords
  enh(php) Left and right-side of double colon (highlightjs#3422)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants