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
When highlighting the value $# in Shell Script, the editor interprets the # as the start of a comment (see line 1 in screenshot). This both highlights the value incorrectly and "comments out" the rest of the line, which is incorrect. Line 2 of the screenshot has an example of what the highlighting should look like.
To Reproduce
Enter the text (( $# == 0 ))
Switch to "Shell Script" syntax
Expected behavior
$# should be highlighted as a value, not half-value half-comment, and should not comment out the rest of the line.
Description
When highlighting the value
$#
in Shell Script, the editor interprets the#
as the start of a comment (see line 1 in screenshot). This both highlights the value incorrectly and "comments out" the rest of the line, which is incorrect. Line 2 of the screenshot has an example of what the highlighting should look like.To Reproduce
(( $# == 0 ))
Expected behavior
$#
should be highlighted as a value, not half-value half-comment, and should not comment out the rest of the line.CotEditor version
4.3.6 (530)
macOS version
12.6 (21G115)
Additional context
The syntax file for shell:
CotEditor/CotEditor/Syntaxes/Shell Script.yml
Line 243 in 0c34235
appears to be correct so this may be a deeper issue than just a syntax file.
The text was updated successfully, but these errors were encountered: