Skip to content

Commit

Permalink
allow multiple font styles in var names
Browse files Browse the repository at this point in the history
  • Loading branch information
rogersamso committed Jun 27, 2024
1 parent 853e8b2 commit ad8057e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysd/translators/vensim/parsing_grammars/sketch.peg
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ other_objects = other_objects_code "," anything

# fonts
font_properties = font_name? "|" font_size? "|" font_style? "|" color
font_style = "B" / "I" / "U" / "S" / "V" # italics, bold, underline, etc
font_style = ("B" / "I" / "U" / "S" / "V")+ # italics, bold, underline, etc
font_size = ~r"\d+" # this needs to be made a regex to match any font
font_name = ~r"(?<=,)[^\|\d]+(?=\|)"

Expand Down

0 comments on commit ad8057e

Please sign in to comment.