-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
%() doesn't capture subgroups, and should be a wee bit faster.
- Loading branch information
Showing
8 changed files
with
14 additions
and
14 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
" Top-level declaration | ||
call jumpy#map('\v^(func|type|var|const|import)') | ||
call jumpy#map('\v^%(func|type|var|const|import)') |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
" Common block elements | ||
call jumpy#map('\v\<(head|body|style|script|div|ul|article|section|main|header|footer|h\d)[> ]') | ||
call jumpy#map('\v\<%(head|body|style|script|div|ul|article|section|main|header|footer|h\d)[> ]') |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
" Function declaration/expression | ||
" | ||
" At any indentation level, and only named ones, for obvious reasons. | ||
call jumpy#map('\v^\s*(function\s*\w|var \w*\s+\=\s+function\s*\()') | ||
call jumpy#map('\v^\s*%(function\s*\w|var \w*\s+\=\s+function\s*\()') |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
" Header and horizontal rule | ||
call jumpy#map('\v(^\=\=\=|^---|^#{1,6})') | ||
call jumpy#map('\v%(^\=\=\=|^---|^#{1,6})') |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
" CREATE and BEGIN | ||
call jumpy#map('\c\v^\s*(create|begin)>') | ||
call jumpy#map('\c\v^\s*%(create|begin)>') |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
" Function/augroup definition | ||
call jumpy#map('\v(^\s*fu%[nction]>|aug%[roup] (end)@!)') | ||
call jumpy#map('\v%(^\s*fu%[nction]>|aug%[roup] (end)@!)') |