| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -386,7 +386,7 @@ repository: | |||
| 386 | 386 | } | |
| 387 | 387 | ] | |
| 388 | 388 | "member-access": | |
| 389 | - begin: "\\.\\s*(?!\\.)" | ||
| 389 | + begin: "(\\.)\\s*(?!\\.)" | ||
| 390 | 390 | end: ''' | |
| 391 | 391 | (?x) | |
| 392 | 392 | # stop when you've just read non-whitespace followed by non-word | |
@@ -398,6 +398,9 @@ repository: | |||
| 398 | 398 | $ | |
| 399 | 399 | ||
| 400 | 400 | ''' | |
| 401 | + beginCaptures: | ||
| 402 | + "1": | ||
| 403 | + name: "punctuation.separator.period.python" | ||
| 401 | 404 | patterns: [ | |
| 402 | 405 | { | |
| 403 | 406 | include: "#function-call" | |
@@ -995,12 +998,14 @@ repository: | |||
| 995 | 998 | { | |
| 996 | 999 | match: ''' | |
| 997 | 1000 | (?x) | |
| 998 | - \\s* \\b(from)\\b (\\s*\\.+\\s*) (import)? | ||
| 1001 | + \\s* \\b(from)\\b \\s*(\\.+)\\s* (import)? | ||
| 999 | 1002 | ||
| 1000 | 1003 | ''' | |
| 1001 | 1004 | captures: | |
| 1002 | 1005 | "1": | |
| 1003 | 1006 | name: "keyword.control.import.python" | |
| 1007 | + "2": | ||
| 1008 | + name: "punctuation.separator.period.python" | ||
| 1004 | 1009 | "3": | |
| 1005 | 1010 | name: "keyword.control.import.python" | |
| 1006 | 1011 | } | |
@@ -1122,8 +1127,11 @@ repository: | |||
| 1122 | 1127 | "1": | |
| 1123 | 1128 | name: "entity.other.inherited-class.python" | |
| 1124 | 1129 | "member-access-class": | |
| 1125 | - begin: "\\.\\s*(?!\\.)" | ||
| 1130 | + begin: "(\\.)\\s*(?!\\.)" | ||
| 1126 | 1131 | end: "(?<=\\S)(?=\\W)|$" | |
| 1132 | + beginCaptures: | ||
| 1133 | + "1": | ||
| 1134 | + name: "punctuation.separator.period.python" | ||
| 1127 | 1135 | patterns: [ | |
| 1128 | 1136 | { | |
| 1129 | 1137 | include: "#call-wrapper-inheritance" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -589,7 +589,7 @@ | |||
| 589 | 589 | <key>member-access</key> | |
| 590 | 590 | <dict> | |
| 591 | 591 | <key>begin</key> | |
| 592 | - <string>\.\s*(?!\.)</string> | ||
| 592 | + <string>(\.)\s*(?!\.)</string> | ||
| 593 | 593 | <key>end</key> | |
| 594 | 594 | <string>(?x) | |
| 595 | 595 | # stop when you've just read non-whitespace followed by non-word | |
@@ -600,6 +600,14 @@ | |||
| 600 | 600 | (^|(?<=\s))(?=[^\\\w\s]) | | |
| 601 | 601 | $ | |
| 602 | 602 | </string> | |
| 603 | + <key>beginCaptures</key> | ||
| 604 | + <dict> | ||
| 605 | + <key>1</key> | ||
| 606 | + <dict> | ||
| 607 | + <key>name</key> | ||
| 608 | + <string>punctuation.separator.period.python</string> | ||
| 609 | + </dict> | ||
| 610 | + </dict> | ||
| 603 | 611 | <key>patterns</key> | |
| 604 | 612 | <array> | |
| 605 | 613 | <dict> | |
@@ -1513,7 +1521,7 @@ | |||
| 1513 | 1521 | <dict> | |
| 1514 | 1522 | <key>match</key> | |
| 1515 | 1523 | <string>(?x) | |
| 1516 | - \s* \b(from)\b (\s*\.+\s*) (import)? | ||
| 1524 | + \s* \b(from)\b \s*(\.+)\s* (import)? | ||
| 1517 | 1525 | </string> | |
| 1518 | 1526 | <key>captures</key> | |
| 1519 | 1527 | <dict> | |
@@ -1522,6 +1530,11 @@ | |||
| 1522 | 1530 | <key>name</key> | |
| 1523 | 1531 | <string>keyword.control.import.python</string> | |
| 1524 | 1532 | </dict> | |
| 1533 | + <key>2</key> | ||
| 1534 | + <dict> | ||
| 1535 | + <key>name</key> | ||
| 1536 | + <string>punctuation.separator.period.python</string> | ||
| 1537 | + </dict> | ||
| 1525 | 1538 | <key>3</key> | |
| 1526 | 1539 | <dict> | |
| 1527 | 1540 | <key>name</key> | |
@@ -1719,9 +1732,17 @@ | |||
| 1719 | 1732 | <key>member-access-class</key> | |
| 1720 | 1733 | <dict> | |
| 1721 | 1734 | <key>begin</key> | |
| 1722 | - <string>\.\s*(?!\.)</string> | ||
| 1735 | + <string>(\.)\s*(?!\.)</string> | ||
| 1723 | 1736 | <key>end</key> | |
| 1724 | 1737 | <string>(?<=\S)(?=\W)|$</string> | |
| 1738 | + <key>beginCaptures</key> | ||
| 1739 | + <dict> | ||
| 1740 | + <key>1</key> | ||
| 1741 | + <dict> | ||
| 1742 | + <key>name</key> | ||
| 1743 | + <string>punctuation.separator.period.python</string> | ||
| 1744 | + </dict> | ||
| 1745 | + </dict> | ||
| 1725 | 1746 | <key>patterns</key> | |
| 1726 | 1747 | <array> | |
| 1727 | 1748 | <dict> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -415,7 +415,7 @@ repository: | |||
| 415 | 415 | match: (?x) \b ([[:alpha:]_]\w*) \b | |
| 416 | 416 | ||
| 417 | 417 | member-access: | |
| 418 | - begin: \.\s*(?!\.) | ||
| 418 | + begin: (\.)\s*(?!\.) | ||
| 419 | 419 | end: | | |
| 420 | 420 | (?x) | |
| 421 | 421 | # stop when you've just read non-whitespace followed by non-word | |
@@ -425,6 +425,8 @@ repository: | |||
| 425 | 425 | # i.e. when seeing a non-identifier | |
| 426 | 426 | (^|(?<=\s))(?=[^\\\w\s]) | | |
| 427 | 427 | $ | |
| 428 | + beginCaptures: | ||
| 429 | + '1': {name: punctuation.separator.period.python} | ||
| 428 | 430 | patterns: | |
| 429 | 431 | - include: '#function-call' | |
| 430 | 432 | - include: '#member-access-base' | |
@@ -829,9 +831,10 @@ repository: | |||
| 829 | 831 | patterns: | |
| 830 | 832 | - match: | | |
| 831 | 833 | (?x) | |
| 832 | - \s* \b(from)\b (\s*\.+\s*) (import)? | ||
| 834 | + \s* \b(from)\b \s*(\.+)\s* (import)? | ||
| 833 | 835 | captures: | |
| 834 | 836 | '1': {name: keyword.control.import.python} | |
| 837 | + '2': {name: punctuation.separator.period.python} | ||
| 835 | 838 | '3': {name: keyword.control.import.python} | |
| 836 | 839 | - name: keyword.control.import.python | |
| 837 | 840 | match: \b(?<!\.)import\b | |
@@ -907,8 +910,10 @@ repository: | |||
| 907 | 910 | '1': {name: entity.other.inherited-class.python} | |
| 908 | 911 | ||
| 909 | 912 | member-access-class: | |
| 910 | - begin: \.\s*(?!\.) | ||
| 913 | + begin: (\.)\s*(?!\.) | ||
| 911 | 914 | end: (?<=\S)(?=\W)|$ | |
| 915 | + beginCaptures: | ||
| 916 | + '1': {name: punctuation.separator.period.python} | ||
| 912 | 917 | patterns: | |
| 913 | 918 | - include: '#call-wrapper-inheritance' | |
| 914 | 919 | - include: '#member-access-base' | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -120,6 +120,7 @@ punctuation.separator.dict.python | |||
| 120 | 120 | punctuation.separator.element.python | |
| 121 | 121 | punctuation.separator.inheritance.python | |
| 122 | 122 | punctuation.separator.parameters.python | |
| 123 | + punctuation.separator.period.python | ||
| 123 | 124 | punctuation.separator.slice.python | |
| 124 | 125 | storage.modifier.declaration.python | |
| 125 | 126 | storage.modifier.flag.regexp | |
| Back | FazBrowse Home | New Git URL |
0 commit comments