File: rx_syntax

package info (click to toggle)
nqp 2022.12%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,436 kB
  • sloc: java: 28,030; perl: 3,394; ansic: 451; makefile: 200; javascript: 68; sh: 1
file content (44 lines) | stat: -rw-r--r-- 2,110 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
##  syntax errors

{{		abcdef		/Missing closing braces/	unterminated closure
\1		abcdef		/reserved/			back references
\x[		abcdef		/Missing close bracket/		unterminated \x[..]
\X[		abcdef		/Missing close bracket/		unterminated \X[..]

* abc		abcdef		/Quantifier follows nothing/	bare * at start
  * abc		abcdef		/Quantifier follows nothing/	bare * after ws
[*|a]		abcdef		/Quantifier follows nothing/	bare * after [
[ *|a]		abcdef		/Quantifier follows nothing/	bare * after [+sp
[a|*]		abcdef		/Quantifier follows nothing/	bare * after |
[a| *]		abcdef		/Quantifier follows nothing/	bare * after |+sp

+ abc		abcdef		/Quantifier follows nothing/	bare + at start
  + abc		abcdef		/Quantifier follows nothing/	bare + after ws
[+|a]		abcdef		/Quantifier follows nothing/	bare + after [
[ +|a]		abcdef		/Quantifier follows nothing/	bare + after [+sp
[a|+]		abcdef		/Quantifier follows nothing/	bare + after |
[a| +]		abcdef		/Quantifier follows nothing/	bare + after |+sp

? abc		abcdef		/Quantifier follows nothing/	bare ? at start
  ? abc		abcdef		/Quantifier follows nothing/	bare ? after ws
[?|a]		abcdef		/Quantifier follows nothing/	bare ? after [
[ ?|a]		abcdef		/Quantifier follows nothing/	bare ? after [+sp
[a|?]		abcdef		/Quantifier follows nothing/	bare ? after |
[a| ?]		abcdef		/Quantifier follows nothing/	bare ? after |+sp

: abc		abcdef		/Quantifier follows nothing/	bare : at start
  : abc		abcdef		/Quantifier follows nothing/	bare : after ws
[:|a]		abcdef		/Quantifier follows nothing/	bare : after [
[ :|a]		abcdef		/Quantifier follows nothing/	bare : after [+sp
[a|:]		abcdef		/Quantifier follows nothing/	bare : after |
[a| :]		abcdef		/Quantifier follows nothing/	bare : after |+sp

		abcdef		/'Null pattern'/		null pattern
  		abcdef		/'Null pattern'/		ws null pattern

  =abc		abcdef		/LHS of alias must be lvalue/	bare : after ws
[ =a]		abcdef		/LHS of alias must be lvalue/	bare : after [+sp
[a| =a]		abcdef		/LHS of alias must be lvalue/	bare : after |+sp

\b          abcdef      /Unsupported/                   bare \b
\B          abcdef      /Unsupported/                   bare \B