Skip to content

Commit b85272f

Browse files
author
Gareth Aneurin Tribello
committed
Fix to way we find inputs that use special replica syntax with two open brakets
1 parent 2e230e3 commit b85272f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PlumedToHTML/PlumedLexer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ class PlumedLexer(RegexLexer):
2222
(r'(\w+)(=)(@\S+:)(__FILL__)', bygroups(Name.Attribute, Text, Name.Constant, Literal)),
2323
# Find special replica syntax with brackets around replica command
2424
(r'(\w+)(=\{)(@\S+:)((?s)\{.*?\})(\})', bygroups(Name.Attribute, Text, Name.Constant, Generic, Text)),
25+
# Find special repliica syntax with multiple brackets
26+
(r'(\w+)(=)(@\S+:)((?s)\{\s*\{.*?\}\s*\})', bygroups(Name.Attribute, Text, Name.Constant, Generic)),
2527
# Find special replica syntax with brackets
26-
(r'(\w+)(=)(@replicas:)(\{[\S\s\n]+\})', bygroups(Name.Attribute, Text, Name.Constant, Generic)),
27-
# Find mda syntax with brackets
2828
(r'(\w+)(=)(@\S+:)((?s)\{.*?\})', bygroups(Name.Attribute, Text, Name.Constant, Generic)),
2929
# Find special replica syntax without brackets
3030
(r'(\w+)(=)(@\S+:)(\S+\b)', bygroups(Name.Attribute, Text, Name.Constant, Generic)),

0 commit comments

Comments
 (0)