Skip to content

New syntax def #127

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

Closed
wants to merge 14 commits into from
Closed

Conversation

guillermooo
Copy link
Member

This PR adds a syntax def for PS in the new .sublime-syntax format.

Advantages:

  • LL(1) parsing
  • tests for syntax definition

Currently working on

  • embedded docs
    • section titles
    • title arguments
  • script blocks
  • params()
  • variable names
    • short ($Foo)
    • long (${weird name})
    • scoped ($script:wtf)
  • strings
    • single quoted
    • double quoted
    • @'
    • @"
    • string interpolation simple
    • string interpolation subexpr

Maybe later / You take it

  • foo

@@ -522,7 +522,7 @@
<key>function</key>
<dict>
<key>begin</key>
<string>((?i:function|filter|configuration|workflow))\s+((?:\p{L}|\d|_|-|\.)+)</string>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filter belongs here, I believe

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've messed this up. This change wasn't supposed to end up here. I'll try to fix it later.

@guillermooo
Copy link
Member Author

BTW, I'm making up the scope names as I go. If anyone has better ideas, please chip in!

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

Successfully merging this pull request may close these issues.

2 participants