Add JASS progamming language - #8096
Open
Drake53 wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add JASS, the Warcraft III scripting language.
Description
JASS is the original scripting language of Warcraft III.
It has been the World Editor's default output since 2002; Lua was added as an alternative in patch 1.31 (2019), but JASS remains what the editor emits unless a map opts into Lua, and it backs a large existing corpus of map scripts and hand-written libraries on GitHub.
Those
.jfiles are currently either left unclassified or attributed to Jasmin or Objective-J, the two languages that share the.jextension.This PR adds
JASSwith a syntax-highlighting grammar, four real-world samples, and a new.jheuristic that disambiguates all three languages.Scope: JASS, not vJASS
This adds original JASS only. vJASS (JassHelper) is usually described as a superset of JASS, but it is not strictly one, so folding the two together would be wrong.
The clearest example is the
debugkeyword: in JASSdebugapplies to the entire statement that follows it, so it carries through a multi-line construct such as anif … endifblock, whereas in vJASS it applies only to the line it appears on.The same source text can therefore mean different things in the two languages.
The grammar and the samples here are plain JASS; no vJASS, Zinc or Wurst constructs are included.
Checklist:
#FF0303