summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pygments/lexers/other.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py
index 0701caa4..681f04a1 100644
--- a/pygments/lexers/other.py
+++ b/pygments/lexers/other.py
@@ -768,17 +768,20 @@ class LogtalkLexer(RegexLexer):
'directive': [
# Entity directives
- (r'(category|object|protocol)(?=[(])', Keyword, 'entityrelations'),
+ (r'(category|object|protocol)(?=[(])', Keyword, 'entityrelations'),
(r'(end_(category|object|protocol))[.]',Keyword, 'root'),
# Predicate scope directives
(r'(public|protected|private)(?=[(])', Keyword, 'root'),
# Other directives
- (r'\be(ncoding|xport)(?=[(])', Keyword, 'root'),
- (r'\bin(fo|itialization)(?=[(])', Keyword, 'root'),
- (r'\b(dynamic|synchronized|threaded)[.]', Keyword, 'root'),
- (r'\b(alias|d(ynamic|iscontiguous)|m(eta_predicate|ode|ultifile)|synchronized)(?=[(])', Keyword, 'root'),
- (r'\bop(?=[(])', Keyword, 'root'),
- (r'\b(calls|use(s|_module))(?=[(])', Keyword, 'root'),
+ (r'e(ncoding|xport)(?=[(])', Keyword, 'root'),
+ (r'in(fo|itialization)(?=[(])', Keyword, 'root'),
+ (r'(dynamic|synchronized|threaded)[.]', Keyword, 'root'),
+ (r'(alias|d(ynamic|iscontiguous)|m(eta_predicate|ode|ultifile)|'
+ r'synchronized)(?=[(])', Keyword, 'root'),
+ (r'op(?=[(])', Keyword, 'root'),
+ (r'(calls|use(s|_module))(?=[(])', Keyword, 'root'),
+ (r'[a-z][a-zA-Z0-9_]*(?=[(])', Text, 'root'),
+ (r'[a-z][a-zA-Z0-9_]*[.]', Text, 'root'),
],
'entityrelations': [