You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prism looks "lost" with Bash code having this syntax :
printf -v aval "%d" \'a # 'a' ascii value
printf -v zval "%d" \'z # 'z' ascii value
It looks like it considers the first quote in comment to be the end of a string, the string start being the escaped quote. What is most disturbing is that all lines following these lines are wrongly colorized, as we can see on: https://exercism.io/my/solutions/7a25d82ea512403280f7fd168040eefb?iteration_idx=1, where colors are all wrong after line 56.
Workaround 1: The following works with prism (no single quote in comment) :
printf -v aval "%d" \'a # "a" ascii value
printf -v zval "%d" \'z # "z" ascii value
Workaround 2: using double quotes instead of escaping with backslash :
printf -v aval "%d" "'a" # 'a' ascii value
printf -v zval "%d" "'z" # 'z' ascii value
The text was updated successfully, but these errors were encountered:
Prism looks "lost" with Bash code having this syntax :
It looks like it considers the first quote in comment to be the end of a string, the string start being the escaped quote. What is most disturbing is that all lines following these lines are wrongly colorized, as we can see on:
https://exercism.io/my/solutions/7a25d82ea512403280f7fd168040eefb?iteration_idx=1, where colors are all wrong after line 56.
Workaround 1: The following works with prism (no single quote in comment) :
Workaround 2: using double quotes instead of escaping with backslash :
The text was updated successfully, but these errors were encountered: