summaryrefslogtreecommitdiff
path: root/libregexp-opcode.h
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2025-05-16 20:34:18 +0200
committerFabrice Bellard <fabrice@bellard.org>2025-05-16 20:34:18 +0200
commitf95b8ba1bbf2f6ec85c340d470ad10d335b243c2 (patch)
tree1f9a98250e5b5b1d959a32bc5efc0627181bd842 /libregexp-opcode.h
parent9c973a8923145c5682afb904621cfbc59a7ec7f9 (diff)
downloadquickjs-f95b8ba1bbf2f6ec85c340d470ad10d335b243c2.tar.gz
quickjs-f95b8ba1bbf2f6ec85c340d470ad10d335b243c2.zip
added regexp modifiers
Diffstat (limited to 'libregexp-opcode.h')
-rw-r--r--libregexp-opcode.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/libregexp-opcode.h b/libregexp-opcode.h
index f255e09..ebab751 100644
--- a/libregexp-opcode.h
+++ b/libregexp-opcode.h
@@ -26,11 +26,15 @@
DEF(invalid, 1) /* never used */
DEF(char, 3)
+DEF(char_i, 3)
DEF(char32, 5)
+DEF(char32_i, 5)
DEF(dot, 1)
DEF(any, 1) /* same as dot but match any character including line terminator */
DEF(line_start, 1)
+DEF(line_start_m, 1)
DEF(line_end, 1)
+DEF(line_end_m, 1)
DEF(goto, 5)
DEF(split_goto_first, 5)
DEF(split_next_first, 5)
@@ -42,11 +46,17 @@ DEF(loop, 5) /* decrement the top the stack and goto if != 0 */
DEF(push_i32, 5) /* push integer on the stack */
DEF(drop, 1)
DEF(word_boundary, 1)
+DEF(word_boundary_i, 1)
DEF(not_word_boundary, 1)
+DEF(not_word_boundary_i, 1)
DEF(back_reference, 2)
-DEF(backward_back_reference, 2) /* must come after back_reference */
+DEF(back_reference_i, 2) /* must come after */
+DEF(backward_back_reference, 2) /* must come after */
+DEF(backward_back_reference_i, 2) /* must come after */
DEF(range, 3) /* variable length */
+DEF(range_i, 3) /* variable length */
DEF(range32, 3) /* variable length */
+DEF(range32_i, 3) /* variable length */
DEF(lookahead, 5)
DEF(negative_lookahead, 5)
DEF(push_char_pos, 1) /* push the character position on the stack */