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

Fix comments and 0x01 in regex replacement #145

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions build-flavored-queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,10 @@ def main():
)

# Delete directives
contents = re.sub(r"SKIP-\w+", "", contents)
contents = re.sub(r"SKIP-[\w-]+", "", contents)
# Remove trailing whitespace and duplicate newlines
contents = re.sub(r"\s*;?\s+$", "", contents)
contents = re.sub(r"((?:\r?\n){2,})(?:\r?\n)+", "\1", contents)
contents = re.sub(r"((?:\r?\n){2,})(?:\r?\n)+", r"\1", contents)

if not contents.endswith("\n"):
contents += "\n"
Expand Down
4 changes: 3 additions & 1 deletion queries-flavored/helix/injections.scm
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
; File autogenerated by build-queries-nvim.py; do not edit

; FIXME: these are not compatible with helix due to precedence
; Specify nested languages that live within a `justfile`

; FIXME: these are not compatible with helix due to precedence

; ================ Always applicable ================

Expand Down
2 changes: 2 additions & 0 deletions queries-flavored/helix/textobjects.scm
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
; File autogenerated by build-queries-nvim.py; do not edit

; Specify how to navigate around logical blocks in code

(recipe
(recipe_body) @function.inside) @function.around

Expand Down
4 changes: 3 additions & 1 deletion queries-flavored/lapce/injections.scm
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
; File autogenerated by build-queries-nvim.py; do not edit

; FIXME: these are not compatible with helix due to precedence
; Specify nested languages that live within a `justfile`

; FIXME: these are not compatible with helix due to precedence

; ================ Always applicable ================

Expand Down
2 changes: 2 additions & 0 deletions queries-flavored/lapce/textobjects.scm
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
; File autogenerated by build-queries-nvim.py; do not edit

; Specify how to navigate around logical blocks in code

(recipe
(recipe_body) @function.inside) @function.around

Expand Down
2 changes: 1 addition & 1 deletion queries-flavored/nvim-next/injections.scm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; File autogenerated by build-queries-nvim.py; do not edit

; FIXME: these are not compatible with helix due to precedence
; Specify nested languages that live within a `justfile`

; ================ Always applicable ================

Expand Down
2 changes: 2 additions & 0 deletions queries-flavored/nvim-next/textobjects.scm
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
; File autogenerated by build-queries-nvim.py; do not edit

; Specify how to navigate around logical blocks in code

(recipe
(recipe_body) .inner) .outer

Expand Down
4 changes: 3 additions & 1 deletion queries-flavored/zed/injections.scm
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
; File autogenerated by build-queries-nvim.py; do not edit

; FIXME: these are not compatible with helix due to precedence
; Specify nested languages that live within a `justfile`

; FIXME: these are not compatible with helix due to precedence

; ================ Always applicable ================

Expand Down
2 changes: 2 additions & 0 deletions queries-flavored/zed/textobjects.scm
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
; File autogenerated by build-queries-nvim.py; do not edit

; Specify how to navigate around logical blocks in code

(recipe
(recipe_body) @function.inside) @function.around

Expand Down
4 changes: 3 additions & 1 deletion queries-src/injections.scm
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
; FIXME: these are not compatible with helix due to precedence
; Specify nested languages that live within a `justfile`

; FIXME: these are not compatible with helix due to precedence SKIP-NVIM SKIP-NVIM-OLD

; ================ Always applicable ================

Expand Down
2 changes: 2 additions & 0 deletions queries-src/textobjects.scm
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
; Specify how to navigate around logical blocks in code

(recipe
(recipe_body) @function.inside) @function.around

Expand Down
2 changes: 1 addition & 1 deletion queries/just/injections.scm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; File autogenerated by build-queries-nvim.py; do not edit

; FIXME: these are not compatible with helix due to precedence
; Specify nested languages that live within a `justfile`

; ================ Always applicable ================

Expand Down
2 changes: 2 additions & 0 deletions queries/just/textobjects.scm
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
; File autogenerated by build-queries-nvim.py; do not edit

; Specify how to navigate around logical blocks in code

(recipe
(recipe_body) @function.inner) @function.outer

Expand Down
Loading