-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support Multi-Line and String Escapes (#175)
The Papyrus compiler supports escaping in, as far as I know, three contexts: * Within a string. The following are valid: | Escape | Resulting Character | | :-: | :-: | | `\n` | New Line | | `\t` | Tab Character | | `\"` | `"` | | `\\` | `\` | * At the end of a line. For example: ```papyrus event onInit() Game.GetPlayer() \ .Kill() endEvent ``` * Within parameter lists. *While this falls into the previous by definition, the syntax highlighting method does not.* Example: ```papyrus function testingFunction(\ , Form akForm1, Location akLoc1, Form akForm2, \ Form akForm3, Location akLoc2, Form akForm4 \ , Form akForm5, Location akLoc3, Form akForm6 \ , Form akForm7, Location akLoc4, Form akForm8 \ ) endFunction ``` This pull request addresses all three of these cases within the Papyrus grammar.
- Loading branch information
Showing
1 changed file
with
188 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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