diff --git a/Syntaxes/Prolog.tmLanguage b/Syntaxes/Prolog.tmLanguage
index 49844d0..baa0a0f 100644
--- a/Syntaxes/Prolog.tmLanguage
+++ b/Syntaxes/Prolog.tmLanguage
@@ -18,7 +18,7 @@
0
name
- punctuation.definition.string.begin.prolog
+ punctuation.definition.string.begin.source.prolog
end
@@ -28,24 +28,24 @@
0
name
- punctuation.definition.string.end.prolog
+ punctuation.definition.string.end.source.prolog
name
- string.quoted.single.prolog
+ string.quoted.single.source.prolog
patterns
match
\\.
name
- constant.character.escape.prolog
+ constant.character.escape.source.prolog
match
''
name
- constant.character.escape.quote.prolog
+ constant.character.escape.quote.source.prolog
@@ -57,13 +57,13 @@
0
name
- punctuation.definition.comment.prolog
+ punctuation.definition.comment.source.prolog
end
\*/
name
- comment.block.prolog
+ comment.block.source.prolog
begin
@@ -73,7 +73,7 @@
1
name
- punctuation.whitespace.comment.leading.prolog
+ punctuation.whitespace.comment.leading.source.prolog
end
@@ -88,27 +88,39 @@
0
name
- punctuation.definition.comment.prolog
+ punctuation.definition.comment.source.prolog
end
- \n
+ (?=\n)
name
- comment.line.percentage.prolog
+ comment.line.percentage.source.prolog
match
- :-
+ :- ((use_)?module)
name
- keyword.operator.definition.prolog
+ keyword.operator.definition.source.prolog
match
\b[A-Z][a-zA-Z0-9_]*\b
name
- variable.other.prolog
+ variable.other.source.prolog
+
+
+ match
+ \b[a-z][a-zA-Z0-9_]*(?=:)
+ name
+ module.namespace.other.source.prolog
+
+
+ match
+ \b[a-z][a-zA-Z0-9_]*(?=\()
+ name
+ module.function.other.source.prolog
comment
@@ -116,11 +128,14 @@
I changed this from entity to storage.type, but have no idea what it is -- Allan
And I changed this to constant.other.symbol after glancing over the docs,
might still be wrong. -- Infininight
+ constant fits better than storage.type,
+ since lower-case constants represent atoms,
+ i.e. fixed entities. -- sebgod
match
- \b[a-z][a-zA-Z0-9_]*\b
+ \b[a-z][a-zA-Z0-9_]*(?!\()
name
- constant.other.symbol.prolog
+ constant.other.symbol.source.prolog
scopeName