Skip to content

Conversation

@RunDevelopment
Copy link
Member

Changes:

  • Fixed constant vs color confusion. Seems like I swapped the regex at some point...
  • Made on and off keywords instead of booleans. This is closer to how the language interprets code and makes it easier to implement function calls.
  • Added function calls (as requested by @I-d-as). The detected syntax is intentionally restrictive to prevent false positives. This leads to a few false negatives (e.g. around case statements) but I think that's okay for now.

Example:

image

@github-actions
Copy link

github-actions bot commented Nov 9, 2021

JS File Size Changes (gzipped)

A total of 1 files have changed, with a combined diff of +142 B (+20.2%).

Details
file master pull size diff % diff
components/prism-maxscript.min.js 702 B 844 B +142 B +20.2%

Generated by 🚫 dangerJS against b3ff370

@RunDevelopment RunDevelopment merged commit e9b856c into PrismJS:master Nov 22, 2021
@RunDevelopment RunDevelopment deleted the maxscript-improvements branch November 22, 2021 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant