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

[WIP] Rewrite syntax definition in YAML #165

Draft
wants to merge 23 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c9b3123
Direct migration to .sublime-syntax
michaelblyons Feb 1, 2020
b701521
Start rearranging and changing scopes
michaelblyons Feb 1, 2020
134b809
Adapted tests from PowerShell/EditorSyntax
michaelblyons Feb 1, 2020
46adfad
Push a little further to scope rectification
michaelblyons Feb 1, 2020
a0a24e9
Overhaul numbers and option flags
michaelblyons Feb 1, 2020
07acf91
Replace silly non-cap groups with `\w`. Further tweak numbers
michaelblyons Feb 1, 2020
9571835
New Regex-Eng compatible. Most of the tests pass.
michaelblyons Feb 1, 2020
b9533ca
Rebuild `#Requires`
michaelblyons Feb 1, 2020
1aca5da
Fixup integers with MB
michaelblyons Feb 1, 2020
d83caa6
Tinker with support files
michaelblyons Feb 1, 2020
43a437b
Escape characters are valid without string quoting
michaelblyons Feb 1, 2020
1cddc0b
Break keyword.control into semantic scopes. Use kebab_break. Readability
michaelblyons Feb 4, 2020
5236ffd
Push a context for membership
michaelblyons Feb 4, 2020
300ebcf
Multiline regex formatting
michaelblyons Apr 10, 2021
f5b8461
Fix first_line_match NL chomp
michaelblyons Apr 11, 2021
60b2779
License dates
michaelblyons Apr 16, 2021
4462d17
Convert ISE Nostalgia to sublime-color-scheme
michaelblyons Apr 16, 2021
562711f
Syntax test workflow
michaelblyons Apr 16, 2021
8b530af
Syntax test references
michaelblyons Apr 17, 2021
7f9cb43
Add indentation rules and test
keith-hall May 13, 2021
bc47f5b
Clear string scope for subexpressions within strings
jwortmann May 2, 2022
abca63f
Tweak syntax tests
jwortmann May 10, 2022
3179654
Add source.powershell.embedded for subexpressions
jwortmann May 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Contributing

Thanks for taking an insterest in contributing to the PowerShell package for
Thanks for taking an interest in contributing to the PowerShell package for
Sublime Text 3!


Expand All @@ -17,24 +17,27 @@ To build development versions, first you need a configuration file in

This file must contain the following information:

{
"pathToSublimeText": "...\sublime_text.exe",
"pathToSublimeTextData": "...\
}
``` json
{
"pathToSublimeText": "...\\sublime_text.exe",
"pathToSublimeTextData": "...\\"
}
```


#### Using Sublime Text

1. Press <kbd>Ctrl+Shift+B</kbd> to open the build systems menu.
1. Press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>B</kbd> to open the build systems menu.
2. Select 'PowerShell: Build Dev Version'


#### Using the Command Line

From the project's root:

.\bin\BuildFolder.ps1 -verbose

``` pwsh
.\bin\BuildFolder.ps1 -verbose
```

#### Running Tests

Expand Down
11 changes: 2 additions & 9 deletions PowerShell.sublime-project
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@
[
{
"follow_symlinks": true,
"path": "."
}
"path": ".",
},
],

"build_systems": [
{
"name": "PowerShell: Build Dev Version",
"shell_cmd": "powershell.exe -noninteractive -file $project_path/bin/BuildFolder.ps1"
}
]
}
Loading