diff options
| author | ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> | 2025-07-15 08:04:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-15 15:04:17 +0000 |
| commit | 73e9987c9fc86dd91c20267e9cd79efd2d33d1af (patch) | |
| tree | abb30bda486b65adf5a304f9ebbe85c0cd5a8a9a /tests/diagnostics | |
| parent | d964555d2ee83fac2ba357e4ec81e2a393a7b12f (diff) | |
Fix `slang-generate` segfault when parsing `$(()...)` (#7683)
* Fix `slang-generate` segfault when parsing `(...)`
Currently the following code causes a failure:
* `myFunc($((int)val))`
* This fails since we parse it as `int)val` due to trying to find a body with repeating `(`.
The primary issue here is that auto-format prefers `$((...))` over `$( (...))`, making this an annoying bug.
* only read first char with `(`
* format code
---------
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'tests/diagnostics')
0 files changed, 0 insertions, 0 deletions
