diff --git a/grammars/MagicPython.cson b/grammars/MagicPython.cson
index 568d9944..526b2873 100644
--- a/grammars/MagicPython.cson
+++ b/grammars/MagicPython.cson
@@ -386,7 +386,7 @@ repository:
}
]
"member-access":
- begin: "\\.\\s*(?!\\.)"
+ begin: "(\\.)\\s*(?!\\.)"
end: '''
(?x)
# stop when you've just read non-whitespace followed by non-word
@@ -398,6 +398,9 @@ repository:
$
'''
+ beginCaptures:
+ "1":
+ name: "punctuation.separator.period.python"
patterns: [
{
include: "#function-call"
@@ -995,12 +998,14 @@ repository:
{
match: '''
(?x)
- \\s* \\b(from)\\b (\\s*\\.+\\s*) (import)?
+ \\s* \\b(from)\\b \\s*(\\.+)\\s* (import)?
'''
captures:
"1":
name: "keyword.control.import.python"
+ "2":
+ name: "punctuation.separator.period.python"
"3":
name: "keyword.control.import.python"
}
@@ -1122,8 +1127,11 @@ repository:
"1":
name: "entity.other.inherited-class.python"
"member-access-class":
- begin: "\\.\\s*(?!\\.)"
+ begin: "(\\.)\\s*(?!\\.)"
end: "(?<=\\S)(?=\\W)|$"
+ beginCaptures:
+ "1":
+ name: "punctuation.separator.period.python"
patterns: [
{
include: "#call-wrapper-inheritance"
diff --git a/grammars/MagicPython.tmLanguage b/grammars/MagicPython.tmLanguage
index 6545fbab..ae03ed0e 100644
--- a/grammars/MagicPython.tmLanguage
+++ b/grammars/MagicPython.tmLanguage
@@ -589,7 +589,7 @@
member-access
begin
- \.\s*(?!\.)
+ (\.)\s*(?!\.)
end
(?x)
# stop when you've just read non-whitespace followed by non-word
@@ -600,6 +600,14 @@
(^|(?<=\s))(?=[^\\\w\s]) |
$
+ beginCaptures
+
+ 1
+
+ name
+ punctuation.separator.period.python
+
+
patterns
@@ -1513,7 +1521,7 @@
match
(?x)
- \s* \b(from)\b (\s*\.+\s*) (import)?
+ \s* \b(from)\b \s*(\.+)\s* (import)?
captures
@@ -1522,6 +1530,11 @@
name
keyword.control.import.python
+ 2
+
+ name
+ punctuation.separator.period.python
+
3
name
@@ -1719,9 +1732,17 @@
member-access-class
begin
- \.\s*(?!\.)
+ (\.)\s*(?!\.)
end
(?<=\S)(?=\W)|$
+ beginCaptures
+
+ 1
+
+ name
+ punctuation.separator.period.python
+
+
patterns
diff --git a/grammars/src/MagicPython.syntax.yaml b/grammars/src/MagicPython.syntax.yaml
index 2c31e243..43009579 100644
--- a/grammars/src/MagicPython.syntax.yaml
+++ b/grammars/src/MagicPython.syntax.yaml
@@ -415,7 +415,7 @@ repository:
match: (?x) \b ([[:alpha:]_]\w*) \b
member-access:
- begin: \.\s*(?!\.)
+ begin: (\.)\s*(?!\.)
end: |
(?x)
# stop when you've just read non-whitespace followed by non-word
@@ -425,6 +425,8 @@ repository:
# i.e. when seeing a non-identifier
(^|(?<=\s))(?=[^\\\w\s]) |
$
+ beginCaptures:
+ '1': {name: punctuation.separator.period.python}
patterns:
- include: '#function-call'
- include: '#member-access-base'
@@ -829,9 +831,10 @@ repository:
patterns:
- match: |
(?x)
- \s* \b(from)\b (\s*\.+\s*) (import)?
+ \s* \b(from)\b \s*(\.+)\s* (import)?
captures:
'1': {name: keyword.control.import.python}
+ '2': {name: punctuation.separator.period.python}
'3': {name: keyword.control.import.python}
- name: keyword.control.import.python
match: \b(?> : keyword.operator.bitwise.python, source.python
sys : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
stderr : source.python
, : punctuation.separator.element.python, source.python
: source.python
@@ -72,7 +72,7 @@
file : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
= : keyword.operator.assignment.python, meta.function-call.arguments.python, meta.function-call.python, source.python
sys : meta.function-call.arguments.python, meta.function-call.python, source.python
-. : meta.function-call.arguments.python, meta.function-call.python, source.python
+. : meta.function-call.arguments.python, meta.function-call.python, punctuation.separator.period.python, source.python
stderr : meta.function-call.arguments.python, meta.function-call.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
print : meta.function-call.python, source.python, support.function.builtin.python
diff --git a/test/classes/class11.py b/test/classes/class11.py
index 6083dc95..bad00706 100644
--- a/test/classes/class11.py
+++ b/test/classes/class11.py
@@ -32,7 +32,7 @@ def : meta.function.python, source.python, storage.type.function.pytho
: : meta.function.python, punctuation.section.function.begin.python, source.python
: source.python
self : source.python, variable.language.special.self.python
-. : source.python
+. : punctuation.separator.period.python, source.python
a : source.python
: source.python
= : keyword.operator.assignment.python, source.python
@@ -40,7 +40,7 @@ def : meta.function.python, source.python, storage.type.function.pytho
a : source.python
: source.python
self : source.python, variable.language.special.self.python
-. : source.python
+. : punctuation.separator.period.python, source.python
b : source.python
: source.python
= : keyword.operator.assignment.python, source.python
@@ -57,7 +57,7 @@ def : meta.function.python, source.python, storage.type.function.pytho
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
: source.python
a : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
self : source.python
: source.python
= : keyword.operator.assignment.python, source.python
@@ -65,9 +65,9 @@ def : meta.function.python, source.python, storage.type.function.pytho
1 : constant.numeric.dec.python, source.python
: source.python
a : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
self : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
bar : source.python
: source.python
= : keyword.operator.assignment.python, source.python
diff --git a/test/classes/class12.py b/test/classes/class12.py
index 90e656bf..e8b69161 100644
--- a/test/classes/class12.py
+++ b/test/classes/class12.py
@@ -37,7 +37,7 @@ def : meta.function.python, source.python, storage.type.function.pytho
: : meta.function.python, punctuation.section.function.begin.python, source.python
: source.python
cls : source.python, variable.language.special.cls.python
-. : source.python
+. : punctuation.separator.period.python, source.python
a : source.python
: source.python
= : keyword.operator.assignment.python, source.python
@@ -45,7 +45,7 @@ def : meta.function.python, source.python, storage.type.function.pytho
a : source.python
: source.python
cls : source.python, variable.language.special.cls.python
-. : source.python
+. : punctuation.separator.period.python, source.python
b : source.python
: source.python
= : keyword.operator.assignment.python, source.python
@@ -68,7 +68,7 @@ def : meta.function.python, source.python, storage.type.function.pytho
1 : constant.numeric.dec.python, source.python
: source.python
a : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
cls : source.python
: source.python
= : keyword.operator.assignment.python, source.python
@@ -76,9 +76,9 @@ def : meta.function.python, source.python, storage.type.function.pytho
1 : constant.numeric.dec.python, source.python
: source.python
a : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
cls : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
__name__ : source.python, support.variable.magic.python
: source.python
cls : meta.item-access.python, source.python, variable.language.special.cls.python
diff --git a/test/classes/class14.py b/test/classes/class14.py
index 036543ed..706969f9 100644
--- a/test/classes/class14.py
+++ b/test/classes/class14.py
@@ -8,12 +8,12 @@ class : meta.class.python, source.python, storage.type.class.python
F : entity.name.type.class.python, meta.class.python, source.python
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
f : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
-. : meta.class.inheritance.python, meta.class.python, source.python
+. : meta.class.inheritance.python, meta.class.python, punctuation.separator.period.python, source.python
Exception : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
f : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
-. : meta.class.inheritance.python, meta.class.python, source.python
+. : meta.class.inheritance.python, meta.class.python, punctuation.separator.period.python, source.python
type : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
@@ -21,7 +21,7 @@ class : meta.class.python, source.python, storage.type.class.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
Exception : meta.class.inheritance.python, meta.class.python, source.python, support.type.exception.python
-. : meta.class.inheritance.python, meta.class.python, source.python
+. : meta.class.inheritance.python, meta.class.python, punctuation.separator.period.python, source.python
a : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
diff --git a/test/classes/class2.py b/test/classes/class2.py
index bba5e52d..536f9258 100644
--- a/test/classes/class2.py
+++ b/test/classes/class2.py
@@ -14,12 +14,12 @@ class : meta.class.python, source.python, storage.type.class.python
Spam : entity.name.type.class.python, meta.class.python, source.python
( : meta.class.inheritance.python, meta.class.python, punctuation.definition.inheritance.begin.python, source.python
Foo : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
-. : meta.class.inheritance.python, meta.class.python, source.python
+. : meta.class.inheritance.python, meta.class.python, punctuation.separator.period.python, source.python
Bar : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
, : meta.class.inheritance.python, meta.class.python, punctuation.separator.inheritance.python, source.python
: meta.class.inheritance.python, meta.class.python, source.python
Bar : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
-. : meta.class.inheritance.python, meta.class.python, source.python
+. : meta.class.inheritance.python, meta.class.python, punctuation.separator.period.python, source.python
name : entity.other.inherited-class.python, meta.class.inheritance.python, meta.class.python, source.python
= : keyword.operator.assignment.python, meta.class.inheritance.python, meta.class.python, source.python
{ : meta.class.inheritance.python, meta.class.python, punctuation.definition.dict.begin.python, source.python
diff --git a/test/classes/super1.py b/test/classes/super1.py
index 5172f365..1840ed9b 100644
--- a/test/classes/super1.py
+++ b/test/classes/super1.py
@@ -30,7 +30,7 @@ def : meta.function.python, source.python, storage.type.function.pytho
super : meta.function-call.python, source.python, support.type.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
__init__ : meta.function-call.python, source.python, support.function.magic.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
foo : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
@@ -41,7 +41,8 @@ def : meta.function.python, source.python, storage.type.function.pytho
super : meta.function-call.python, source.python, support.type.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
+ : source.python
__init__ : meta.function-call.python, source.python, support.function.magic.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
foo : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
@@ -52,7 +53,8 @@ def : meta.function.python, source.python, storage.type.function.pytho
super : meta.function-call.python, source.python, support.type.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
+ : source.python
\ : punctuation.separator.continuation.line.python, source.python
: source.python
__init__ : meta.function-call.python, source.python, support.function.magic.python
@@ -71,7 +73,7 @@ def : meta.function.python, source.python, storage.type.function.pytho
: source.python
: source.python
foo : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
__init__ : meta.function-call.python, source.python, support.function.magic.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
bar : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
diff --git a/test/expressions/const1.py b/test/expressions/const1.py
index 8e19a502..e59a19be 100644
--- a/test/expressions/const1.py
+++ b/test/expressions/const1.py
@@ -12,24 +12,24 @@
PROTOCOL_v2 : constant.other.caps.python, source.python
: source.python
QQQ : constant.other.caps.python, source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
bar : source.python
: source.python
baz : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
AA_a : constant.other.caps.python, source.python
: source.python
_AAA : constant.other.caps.python, source.python
: source.python
foo : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
_AAA : constant.other.caps.python, source.python
QQQq : source.python
: source.python
QQQq123 : source.python
: source.python
self : source.python, variable.language.special.self.python
-. : source.python
+. : punctuation.separator.period.python, source.python
FOOO : meta.function-call.generic.python, meta.function-call.python, source.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
diff --git a/test/expressions/expr10.py b/test/expressions/expr10.py
index 0a14b7df..501fb475 100644
--- a/test/expressions/expr10.py
+++ b/test/expressions/expr10.py
@@ -32,5 +32,5 @@
... : constant.other.ellipsis.python, source.python
) : punctuation.parenthesis.end.python, source.python
... : constant.other.ellipsis.python, source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
__class__ : source.python, support.variable.magic.python
diff --git a/test/expressions/expr11.py b/test/expressions/expr11.py
index 584174eb..142ff621 100644
--- a/test/expressions/expr11.py
+++ b/test/expressions/expr11.py
@@ -7,7 +7,7 @@
= : keyword.operator.assignment.python, source.python
: source.python
self : source.python, variable.language.special.self.python
-. : source.python
+. : punctuation.separator.period.python, source.python
some_list : meta.item-access.python, source.python
[ : meta.item-access.python, punctuation.definition.arguments.begin.python, source.python
1 : constant.numeric.dec.python, meta.item-access.arguments.python, meta.item-access.python, source.python
diff --git a/test/expressions/expr15.py b/test/expressions/expr15.py
index 80558f9d..2815cdae 100644
--- a/test/expressions/expr15.py
+++ b/test/expressions/expr15.py
@@ -3,5 +3,5 @@
foofrom : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
something : source.python
diff --git a/test/expressions/expr18.py b/test/expressions/expr18.py
index 41ed45db..8326520f 100644
--- a/test/expressions/expr18.py
+++ b/test/expressions/expr18.py
@@ -4,8 +4,8 @@
a : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
Exception : source.python
Exception : source.python, support.type.exception.python
-. : source.python
+. : punctuation.separator.period.python, source.python
a : source.python
diff --git a/test/expressions/expr19.py b/test/expressions/expr19.py
index 604b9b84..45dd0e8e 100644
--- a/test/expressions/expr19.py
+++ b/test/expressions/expr19.py
@@ -12,31 +12,37 @@
a : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
+ : source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
foo : comment.line.number-sign.python, source.python
a : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
+ : source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
foo : comment.line.number-sign.python, source.python
a : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
+ : source.python
\ : punctuation.separator.continuation.line.python, source.python
: source.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
foo : comment.line.number-sign.python, source.python
a : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
+ : source.python
' : punctuation.definition.string.begin.python, source.python, string.quoted.single.python
bar : source.python, string.quoted.single.python
' : punctuation.definition.string.end.python, source.python, string.quoted.single.python
a : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
+ : source.python
' : punctuation.definition.string.begin.python, source.python, string.quoted.docstring.single.python
bar : source.python, string.quoted.docstring.single.python
' : punctuation.definition.string.end.python, source.python, string.quoted.docstring.single.python
a : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
+ : source.python
\ : punctuation.separator.continuation.line.python, source.python
: source.python
' : punctuation.definition.string.begin.python, source.python, string.quoted.single.python
diff --git a/test/expressions/expr7.py b/test/expressions/expr7.py
index eef5c56e..936af9e8 100644
--- a/test/expressions/expr7.py
+++ b/test/expressions/expr7.py
@@ -3,17 +3,17 @@
a : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
True : keyword.illegal.name.python, source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
b : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
False : keyword.illegal.name.python, source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
d : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
None : keyword.illegal.name.python, source.python
diff --git a/test/fstrings/comment4.py b/test/fstrings/comment4.py
index 793efc35..f070cdd0 100644
--- a/test/fstrings/comment4.py
+++ b/test/fstrings/comment4.py
@@ -4,7 +4,7 @@
self : source.python, variable.language.special.self.python
-. : source.python
+. : punctuation.separator.period.python, source.python
assertEqual : meta.function-call.generic.python, meta.function-call.python, source.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
f : meta.fstring.python, meta.function-call.arguments.python, meta.function-call.python, source.python, storage.type.string.python, string.interpolated.python, string.quoted.single.python
diff --git a/test/fstrings/simple2.py b/test/fstrings/simple2.py
index 967bb1f3..48ce0dcd 100644
--- a/test/fstrings/simple2.py
+++ b/test/fstrings/simple2.py
@@ -22,7 +22,7 @@
normal : meta.fstring.python, source.python, string.interpolated.python, string.quoted.single.python
{ : constant.character.format.placeholder.other.python, meta.fstring.python, source.python
fo : meta.fstring.python, source.python
-. : meta.fstring.python, source.python
+. : meta.fstring.python, punctuation.separator.period.python, source.python
__add__ : meta.fstring.python, source.python, support.function.magic.python
!s : meta.fstring.python, source.python, storage.type.format.python
} : constant.character.format.placeholder.other.python, meta.fstring.python, source.python
diff --git a/test/illegals/illegal1.py b/test/illegals/illegal1.py
index 61c22dce..6010bc4f 100644
--- a/test/illegals/illegal1.py
+++ b/test/illegals/illegal1.py
@@ -28,7 +28,7 @@ def : meta.function.python, source.python, storage.type.function.pytho
.class : source.python, string.quoted.single.python
' : punctuation.definition.string.end.python, source.python, string.quoted.single.python
) : punctuation.parenthesis.end.python, source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
fuuuu : meta.function-call.generic.python, meta.function-call.python, source.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
baz : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python
diff --git a/test/regexp/python8.py b/test/regexp/python8.py
index b0080e77..f0babc73 100644
--- a/test/regexp/python8.py
+++ b/test/regexp/python8.py
@@ -30,7 +30,7 @@
= : keyword.operator.assignment.python, source.python
: source.python
re : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
compile : meta.function-call.generic.python, meta.function-call.python, source.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
r : meta.function-call.arguments.python, meta.function-call.python, source.python, storage.type.string.python, string.regexp.quoted.multi.python
@@ -187,7 +187,7 @@
, : meta.function-call.arguments.python, meta.function-call.python, punctuation.separator.arguments.python, source.python
: meta.function-call.arguments.python, meta.function-call.python, source.python
re : meta.function-call.arguments.python, meta.function-call.python, source.python
-. : meta.function-call.arguments.python, meta.function-call.python, source.python
+. : meta.function-call.arguments.python, meta.function-call.python, punctuation.separator.period.python, source.python
ASCII : constant.other.caps.python, meta.function-call.arguments.python, meta.function-call.python, source.python
) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python
: source.python
diff --git a/test/statements/import1.py b/test/statements/import1.py
index 1e322e8f..f41b72c5 100644
--- a/test/statements/import1.py
+++ b/test/statements/import1.py
@@ -4,7 +4,8 @@
from : keyword.control.import.python, source.python
- ... : source.python
+ : source.python
+... : punctuation.separator.period.python, source.python
foo : source.python
: source.python
import : keyword.control.import.python, source.python
diff --git a/test/statements/import2.py b/test/statements/import2.py
index 18a8049e..842f68d2 100644
--- a/test/statements/import2.py
+++ b/test/statements/import2.py
@@ -5,17 +5,23 @@
from : keyword.control.import.python, source.python
- .... : source.python
+ : source.python
+.... : punctuation.separator.period.python, source.python
+ : source.python
import : keyword.control.import.python, source.python
: source.python
a : source.python
from : keyword.control.import.python, source.python
- ... : source.python
+ : source.python
+... : punctuation.separator.period.python, source.python
+ : source.python
import : keyword.control.import.python, source.python
: source.python
b : source.python
from : keyword.control.import.python, source.python
- .. : source.python
+ : source.python
+.. : punctuation.separator.period.python, source.python
+ : source.python
import : keyword.control.import.python, source.python
: source.python
c : source.python
diff --git a/test/statements/import3.py b/test/statements/import3.py
index 79f06128..1952bf59 100644
--- a/test/statements/import3.py
+++ b/test/statements/import3.py
@@ -6,22 +6,22 @@
from : keyword.control.import.python, source.python
-.... : source.python
+.... : punctuation.separator.period.python, source.python
import : keyword.control.import.python, source.python
: source.python
a : source.python
from : keyword.control.import.python, source.python
-... : source.python
+... : punctuation.separator.period.python, source.python
import : keyword.control.import.python, source.python
: source.python
b : source.python
from : keyword.control.import.python, source.python
-.. : source.python
+.. : punctuation.separator.period.python, source.python
import : keyword.control.import.python, source.python
: source.python
c : source.python
from : keyword.control.import.python, source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
import : keyword.control.import.python, source.python
: source.python
d : source.python
diff --git a/test/statements/import4.py b/test/statements/import4.py
index c45b328d..b2cee743 100644
--- a/test/statements/import4.py
+++ b/test/statements/import4.py
@@ -6,28 +6,28 @@
from : keyword.control.import.python, source.python
-.... : source.python
+.... : punctuation.separator.period.python, source.python
foo : source.python
: source.python
import : keyword.control.import.python, source.python
: source.python
a : source.python
from : keyword.control.import.python, source.python
-... : source.python
+... : punctuation.separator.period.python, source.python
foo : source.python
: source.python
import : keyword.control.import.python, source.python
: source.python
b : source.python
from : keyword.control.import.python, source.python
-.. : source.python
+.. : punctuation.separator.period.python, source.python
foo : source.python
: source.python
import : keyword.control.import.python, source.python
: source.python
c : source.python
from : keyword.control.import.python, source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
foo : source.python
: source.python
import : keyword.control.import.python, source.python
diff --git a/test/statements/import5.py b/test/statements/import5.py
index a805e4d3..2df920d6 100644
--- a/test/statements/import5.py
+++ b/test/statements/import5.py
@@ -11,20 +11,20 @@ def bar():
from : keyword.control.import.python, source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
foo : source.python
: source.python
import : keyword.control.import.python, source.python
: source.python
d : source.python
from : keyword.control.import.python, source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
import : keyword.control.import.python, source.python
: source.python
a : source.python
: source.python
foo : source.python
-. : source.python
+. : punctuation.separator.period.python, source.python
import : keyword.control.flow.python, source.python
: source.python
raise : keyword.control.flow.python, source.python
diff --git a/test/strings/format2.py b/test/strings/format2.py
index e9b0c240..41c1baed 100644
--- a/test/strings/format2.py
+++ b/test/strings/format2.py
@@ -20,7 +20,7 @@
!s : constant.character.format.placeholder.other.python, source.python, storage.type.format.python, string.quoted.single.python
} : constant.character.format.placeholder.other.python, source.python, string.quoted.single.python
" : punctuation.definition.string.end.python, source.python, string.quoted.single.python
-. : source.python
+. : punctuation.separator.period.python, source.python
format : meta.function-call.generic.python, meta.function-call.python, source.python
( : meta.function-call.python, punctuation.definition.arguments.begin.python, source.python
fo : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.parameter.function-call.python