Skip to content
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

Fortran: fixed support of "dotted" keywords/literals #4043

Merged
merged 3 commits into from Apr 26, 2024

Conversation

jbloino
Copy link
Contributor

@jbloino jbloino commented Apr 25, 2024

This patch fixes the support of Fortran keywords and literals delimited by dots.
The matching pattern implements the directives from the standard on the accepted format of keywords in Fortran.

Resolved #3968

Changes

  • Added $pattern variable in fortran.js
  • Added new markup test, dot_keywords testing dots-delimited keywords in Fortran.
  • Updated changelog with short description of the fix.

Checklist

  • Added markup test
  • Updated the changelog at CHANGES.md

Julien Bloino and others added 3 commits April 25, 2024 16:52
This patch adds a pattern to correctly match
keywords delimited by dots (.).
The pattern also follows the following rules from
the format:
- keywords names start with a letter (or dot).
- names should only contain latin characters,
  digits or the underscore symbol.
- identifiers starting with a dot must end with a
  dot.
Added short description of fix.
Copy link

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

5 files changed

Total change +52 B

View Changes
file base pr diff
es/core.min.js 8.2 KB 8.2 KB -3 B
es/highlight.min.js 8.2 KB 8.2 KB -3 B
es/languages/fortran.min.js 2.4 KB 2.44 KB +31 B
highlight.min.js 8.23 KB 8.23 KB -4 B
languages/fortran.min.js 2.41 KB 2.44 KB +31 B

@joshgoebel joshgoebel merged commit ea6ad28 into highlightjs:main Apr 26, 2024
15 checks passed
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.

(Fortran) highlight.js fails to identify literals
2 participants