Skip to content

Commit

Permalink
Fix comments and 0x01 in regex replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Mar 11, 2024
1 parent d165edc commit 3073ccf
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 8 deletions.
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

0 comments on commit 3073ccf

Please sign in to comment.