Skip to content

Commit f95b8ba

Browse files
author
Fabrice Bellard
committed
added regexp modifiers
1 parent 9c973a8 commit f95b8ba

File tree

3 files changed

+159
-33
lines changed

3 files changed

+159
-33
lines changed

libregexp-opcode.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@
2626

2727
DEF(invalid, 1) /* never used */
2828
DEF(char, 3)
29+
DEF(char_i, 3)
2930
DEF(char32, 5)
31+
DEF(char32_i, 5)
3032
DEF(dot, 1)
3133
DEF(any, 1) /* same as dot but match any character including line terminator */
3234
DEF(line_start, 1)
35+
DEF(line_start_m, 1)
3336
DEF(line_end, 1)
37+
DEF(line_end_m, 1)
3438
DEF(goto, 5)
3539
DEF(split_goto_first, 5)
3640
DEF(split_next_first, 5)
@@ -42,11 +46,17 @@ DEF(loop, 5) /* decrement the top the stack and goto if != 0 */
4246
DEF(push_i32, 5) /* push integer on the stack */
4347
DEF(drop, 1)
4448
DEF(word_boundary, 1)
49+
DEF(word_boundary_i, 1)
4550
DEF(not_word_boundary, 1)
51+
DEF(not_word_boundary_i, 1)
4652
DEF(back_reference, 2)
47-
DEF(backward_back_reference, 2) /* must come after back_reference */
53+
DEF(back_reference_i, 2) /* must come after */
54+
DEF(backward_back_reference, 2) /* must come after */
55+
DEF(backward_back_reference_i, 2) /* must come after */
4856
DEF(range, 3) /* variable length */
57+
DEF(range_i, 3) /* variable length */
4958
DEF(range32, 3) /* variable length */
59+
DEF(range32_i, 3) /* variable length */
5060
DEF(lookahead, 5)
5161
DEF(negative_lookahead, 5)
5262
DEF(push_char_pos, 1) /* push the character position on the stack */

0 commit comments

Comments
 (0)