Skip to content

Commit

Permalink
Fix to way we find inputs that use special replica syntax with two op…
Browse files Browse the repository at this point in the history
…en brakets
  • Loading branch information
Gareth Aneurin Tribello committed Nov 28, 2024
1 parent 2e230e3 commit b85272f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PlumedToHTML/PlumedLexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class PlumedLexer(RegexLexer):
(r'(\w+)(=)(@\S+:)(__FILL__)', bygroups(Name.Attribute, Text, Name.Constant, Literal)),
# Find special replica syntax with brackets around replica command
(r'(\w+)(=\{)(@\S+:)((?s)\{.*?\})(\})', bygroups(Name.Attribute, Text, Name.Constant, Generic, Text)),
# Find special repliica syntax with multiple brackets
(r'(\w+)(=)(@\S+:)((?s)\{\s*\{.*?\}\s*\})', bygroups(Name.Attribute, Text, Name.Constant, Generic)),
# Find special replica syntax with brackets
(r'(\w+)(=)(@replicas:)(\{[\S\s\n]+\})', bygroups(Name.Attribute, Text, Name.Constant, Generic)),
# Find mda syntax with brackets
(r'(\w+)(=)(@\S+:)((?s)\{.*?\})', bygroups(Name.Attribute, Text, Name.Constant, Generic)),
# Find special replica syntax without brackets
(r'(\w+)(=)(@\S+:)(\S+\b)', bygroups(Name.Attribute, Text, Name.Constant, Generic)),
Expand Down

0 comments on commit b85272f

Please sign in to comment.