-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #435 - move to WASM version of Oniguruma
Using "second-mate"
- Loading branch information
Showing
44 changed files
with
3,753 additions
and
208 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[See how you can contribute](https://github.com/pulsar-edit/.github/blob/main/CONTRIBUTING.md) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2014 GitHub Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Bracket Matcher package | ||
|
||
Highlights and jumps between `[]`, `()`, and `{}`. Also highlights matching XML | ||
and HTML tags. | ||
|
||
Autocompletes `[]`, `()`, `{}`, `""`, `''`, `“”`, `‘’`, `«»`, `‹›`, and | ||
backticks by default. | ||
|
||
Use <kbd>ctrl-m</kbd> to jump to the bracket matching the one adjacent to the cursor. | ||
It jumps to the nearest enclosing bracket when there's no adjacent bracket, | ||
|
||
Use <kbd>ctrl-cmd-m</kbd> to select all the text inside the current brackets. | ||
|
||
Use <kbd>alt-cmd-.</kbd> to close the current XML/HTML tag. | ||
|
||
--- | ||
### Configuration | ||
|
||
Matching brackets and quotes are sensibly inserted for you. If you dislike this | ||
functionality, you can disable it from the Bracket Matcher section of the | ||
Settings View. | ||
|
||
#### Custom Pairs | ||
|
||
You can customize matching pairs in Bracket Matcher at any time. You can do so either globally via the Settings View or at the scope level via your `config.cson`. Changes take effect immediately. | ||
|
||
* **Autocomplete Characters** - Comma-separated pairs that the editor will treat as brackets / quotes. Entries in this field override the package defaults. | ||
* For example: `<>, (), []` | ||
|
||
* **Pairs With Extra Newline** - Comma-separated pairs that enhance the editor's auto indent feature. When used, a newline is automatically added between the pair when enter is pressed between them. Note: This feature is meant to be used in combination with brackets defined for indentation by the active language package (`increaseIndentPattern` / `decreaseIndentPattern`). | ||
Example: | ||
``` | ||
fn main() { | ||
| <---- Cursor positioned at one indent level higher | ||
} | ||
``` | ||
|
||
#### Scoped settings | ||
In addition to the global settings, you are also able to add scope-specific modifications to Pulsar in your `config.cson`. This is especially useful for editor rule changes specific to each language. Scope-specific settings override package defaults _and_ global settings. | ||
Example: | ||
```cson | ||
".rust.source": | ||
"bracket-matcher": | ||
autocompleteCharacters: [ | ||
"()" | ||
"[]" | ||
"{}" | ||
"<>" | ||
"\"\"" | ||
"``" | ||
] | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'atom-text-editor': | ||
'ctrl-m': 'bracket-matcher:go-to-matching-bracket' | ||
'ctrl-]': 'bracket-matcher:remove-brackets-from-selection' | ||
|
||
'.platform-darwin atom-text-editor': | ||
'ctrl-cmd-m': 'bracket-matcher:select-inside-brackets' | ||
'alt-cmd-.': 'bracket-matcher:close-tag' | ||
'ctrl-backspace': 'bracket-matcher:remove-matching-brackets' | ||
|
||
'.platform-linux atom-text-editor': | ||
'ctrl-alt-,': 'bracket-matcher:select-inside-brackets' | ||
'ctrl-alt-.': 'bracket-matcher:close-tag' | ||
'ctrl-alt-backspace': 'bracket-matcher:remove-matching-brackets' | ||
|
||
'.platform-win32 atom-text-editor': | ||
'ctrl-alt-,': 'bracket-matcher:select-inside-brackets' | ||
'ctrl-alt-.': 'bracket-matcher:close-tag' | ||
'ctrl-alt-backspace': 'bracket-matcher:remove-matching-brackets' |
Oops, something went wrong.