highlight.js icon indicating copy to clipboard operation
highlight.js copied to clipboard

Updated GML.js to 2023.1 version

Open gnysek opened this issue 2 years ago • 2 comments

Updated GML language data to most up-to-date version, based on 2023.100.0.264 runtime (January 2023 release), with many features added in recent months. Many functions in current definition file were outdated (they were marked as deprecated for around 5-10 years or even already removed in recent months and years).

Changes

Generated from GameMaker runtime internal fnames file, with rule:

  • KEYWORDS: manually, as they are built-in in IDE and not mentioned in fnames file
  • BUILT_INS: functions; everything that have [a-z_]+\(.*?\) in definition (both UK and US spelling)
  • SYMBOLS: macros; everything that ended with # in fnames
  • LANGUAGE_VARIABLES: various global/local variables (reserved words); everything that ended by * (readonly), @ (instance variable), or didn't ended with (...) That exact fnames file can be found here: https://gist.github.com/gnysek/a69ec324df61131b2546d1580f29a760

Checklist

  • [x] Added markup tests, or they don't apply here because... (only keyword updates)
  • [x] Updated the changelog at CHANGES.md

gnysek avatar Dec 19 '22 12:12 gnysek

Please explain removal of LITERALS.

joshgoebel avatar Mar 06 '23 01:03 joshgoebel

I moved then to SYMBOLS, where other GM literals were already. All of those are generally macros which are converted (usually) to integers on compile time.

GameMaker' function list file doesn't differentiate those that were under "literals" form those that were under "symbols" - they are all in same group, as "constants" - https://gist.github.com/gnysek/a69ec324df61131b2546d1580f29a760 (marked with # at end).

gnysek avatar Mar 07 '23 15:03 gnysek

Build Size Report

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

2 files changed

Total change +745 B

View Changes
file base pr diff
es/languages/gml.min.js 13.37 KB 13.74 KB +371 B
languages/gml.min.js 13.37 KB 13.74 KB +374 B

github-actions[bot] avatar Mar 21 '24 02:03 github-actions[bot]

Build Size Report

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

5 files changed

Total change +749 B

View Changes
file base pr diff
es/core.min.js 8.2 KB 8.2 KB +1 B
es/highlight.min.js 8.2 KB 8.2 KB +1 B
es/languages/gml.min.js 13.37 KB 13.74 KB +371 B
highlight.min.js 8.23 KB 8.23 KB +2 B
languages/gml.min.js 13.37 KB 13.74 KB +374 B

github-actions[bot] avatar Mar 21 '24 02:03 github-actions[bot]