File tree Expand file tree Collapse file tree 1 file changed +113
-4
lines changed
Expand file tree Collapse file tree 1 file changed +113
-4
lines changed Original file line number Diff line number Diff line change 15381538 <dict >
15391539 <key >match </key >
15401540 <string >(?x)
1541- (?< !\.)
1541+ (?< !\.|@ )
15421542 \b(
15431543 __import__ | abs | all | any | ascii | basestring | bin | bool |
15441544 bytearray | bytes | callable | chr | classmethod | cmp | compile |
22552255 <key >patterns </key >
22562256 <array >
22572257 <dict >
2258- <key >comment </key >
2259- <string >source.regexp.python is the default, this is the PI version </string >
22602258 <key >include </key >
2261- <string >source.regex .python </string >
2259+ <string >source.regexp .python.improved </string >
22622260 </dict >
22632261 </array >
22642262 </dict >
2263+ <key >string_formatting </key >
2264+ <dict >
2265+ <key >captures </key >
2266+ <dict >
2267+ <key >11 </key >
2268+ <dict >
2269+ <key >name </key >
2270+ <string >constant.numeric.integer.octal.python </string >
2271+ </dict >
2272+ <key >12 </key >
2273+ <dict >
2274+ <key >name </key >
2275+ <string >constant.numeric.integer.hexadecimal.python </string >
2276+ </dict >
2277+ <key >13 </key >
2278+ <dict >
2279+ <key >name </key >
2280+ <string >constant.numeric.integer.binary.python </string >
2281+ </dict >
2282+ <key >14 </key >
2283+ <dict >
2284+ <key >name </key >
2285+ <string >attribute.name </string >
2286+ </dict >
2287+ <key >16 </key >
2288+ <dict >
2289+ <key >name </key >
2290+ <string >attribute.identifier </string >
2291+ </dict >
2292+ <key >6 </key >
2293+ <dict >
2294+ <key >name </key >
2295+ <string >identifier </string >
2296+ </dict >
2297+ <key >8 </key >
2298+ <dict >
2299+ <key >name </key >
2300+ <string >constant.numeric.integer.decimal.python </string >
2301+ </dict >
2302+ </dict >
2303+ <key >comment </key >
2304+ <string >Attempt from @sprt to add support for new-style string formatting. </string >
2305+ <key >match </key >
2306+ <string >(?x)
2307+ (?< ![^\{]\{)
2308+ \{
2309+ (?< fieldname>
2310+ (
2311+ (?< argname>
2312+ (
2313+ (?< identifier> ([\p{Alpha}_][\p{Alnum}_]*)) |
2314+ (?< integer>
2315+ ([1-9]\d* | 0) |
2316+ (
2317+ 0
2318+ (
2319+ (?i:
2320+ ([o]?[0-7]+) |
2321+ ([x][0-9a-f]+) |
2322+ ([b][01]+)
2323+ )
2324+ )
2325+ )
2326+ )
2327+ )
2328+ )?
2329+ )
2330+ (
2331+ (?< attributename>
2332+ (\.\g< identifier> )
2333+ ) |
2334+ \[
2335+ (
2336+ (?< elementindex>
2337+ (
2338+ (\g< integer> ) |
2339+ (?< indexstring> [^\]\}\{]+)
2340+ )
2341+ )
2342+ )
2343+ \]
2344+ )*
2345+ )?
2346+ (
2347+ ((?< conversion> (\![rsa])))
2348+ )?
2349+ (
2350+ (?< formatspec>
2351+ (
2352+ \:
2353+ (
2354+ (?< fill> .)?
2355+ (?< align> ([<> =\^]))
2356+ )?
2357+ (?< sign> ([\ +-]))?
2358+ \#?0?
2359+ (?< width>
2360+ (\g< integer> )
2361+ )?
2362+ ,?
2363+ (?< precision>
2364+ \.
2365+ (\g< integer> )
2366+ )?
2367+ (?< type> ([bcdEeFfGgnosXx%]))?
2368+ )?
2369+ )
2370+ )?
2371+ \}
2372+ (?!\}[^\}]) </string >
2373+ </dict >
22652374 <key >string_quoted_double </key >
22662375 <dict >
22672376 <key >patterns </key >
You can’t perform that action at this time.
0 commit comments