bash arithmetic expansion is not colored corectly when using parenthesis to specify order of operations
System information
OS Version: Arch Linux Rolling x86-64
Gnome Text Editor info: Text Editor 43.1 (43.1)
GTK: 4.8.1 (Compiled against 4.8.1)
GtkSourceView: 5.6.1 (Compiled against 5.6.1) Enchant: 2.3.3
Text Editor (43.1)
GLib: 2.74.0 (2.74.0)
GTK: 4.8.1 (4.8.1)
GtkSourceView: 5.6.1 (5.6.1)
Libadwaita: 1.2.0 (1.2.0)
Enchant2: 2.3.3
gtk-theme-name: Adwaita-empty
GTK_THEME: unset
org.gnome.TextEditor restore-session = true
org.gnome.TextEditor recolor-window = true
org.gnome.TextEditor show-map = false
org.gnome.TextEditor custom-font = 'Monospace 11'
org.gnome.TextEditor show-line-numbers = true [default=false]
org.gnome.TextEditor style-scheme = 'builder-dark' [default='Adwaita']
org.gnome.TextEditor wrap-text = true
org.gnome.TextEditor style-variant = 'follow'
org.gnome.TextEditor indent-style = 'tab'
org.gnome.TextEditor show-right-margin = false
org.gnome.TextEditor spellcheck = true
org.gnome.TextEditor auto-indent = true
org.gnome.TextEditor use-system-font = true
org.gnome.TextEditor keybindings = 'default'
org.gnome.TextEditor highlight-current-line = true [default=false]
org.gnome.TextEditor last-save-directory = 'file:///home/saltedcoffee/Downloads' [default='']
org.gnome.TextEditor auto-save-delay = uint32 3
org.gnome.TextEditor discover-settings = true
org.gnome.TextEditor enable-snippets = false
org.gnome.TextEditor line-height = 1.2
org.gnome.TextEditor indent-width = -1
org.gnome.TextEditor show-grid = false
org.gnome.TextEditor draw-spaces = @as []
org.gnome.TextEditor right-margin-position = uint32 80
org.gnome.TextEditor tab-width = uint32 8
Have you tested Nightly to see if the issue has been fixed? If not, why? I have not, but I haven't found this issue in the issue log and it's very obscure so I can't imagine it's been fixed.
Bug information
In bash, running printf "$((80-43+5+8-3))\n"
should output 47
. This code works and highlights properly:
However, running printf "$(((80-43+5+8-3)/2))\n"
is valid code and should output 23
, but it does not highlight properly:
I would expect to see the internal-most parentheses to be highlighted, like the rest of the arithmetic expansion expression.