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

feat: Support Multi-Line and String Escapes #175

Merged
merged 2 commits into from
Mar 15, 2023

Conversation

BellCubeDev
Copy link

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:
    event onInit()
        Game.GetPlayer() \
            .Kill()
    endEvent
  • Within parameter lists. While this falls into the previous by definition, the syntax highlighting method does not.
    Example:
    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.

Still working on keeping function parameters from turning red...
@nikitalita nikitalita merged commit 13fe286 into joelday:main Mar 15, 2023
joelday pushed a commit that referenced this pull request Mar 15, 2023
# [3.2.0](v3.1.1...v3.2.0) (2023-03-15)

### Features

* Support Multi-Line and String Escapes ([#175](#175)) ([13fe286](13fe286))
@joelday
Copy link
Owner

joelday commented Mar 15, 2023

🎉 This PR is included in version 3.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants