Procházet zdrojové kódy

Merge pull request #731 from decorator-factory/master

Add documentation on the `x` regexp flag
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.0
Erez Shinan před 3 roky
committed by GitHub
rodič
revize
2170e7edc8
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. +5
    -1
      docs/grammar.md

+ 5
- 1
docs/grammar.md Zobrazit soubor

@@ -112,9 +112,13 @@ You can use flags on regexps and strings. For example:
```perl
SELECT: "select"i //# Will ignore case, and match SELECT or Select, etc.
MULTILINE_TEXT: /.+/s
SIGNED_INTEGER: /
[+-]? # the sign
(0|[1-9][0-9]*) # the digits
/x
```

Supported flags are one of: `imslu`. See Python's regex documentation for more details on each one.
Supported flags are one of: `imslux`. See Python's regex documentation for more details on each one.

Regexps/strings of different flags can only be concatenated in Python 3.6+



Načítá se…
Zrušit
Uložit