Commit d507899
committed
op.c: Make ifdef structure of argument to S_op_clear_gv() less objectionable to syntax parsers
The prior structure of this syntax made it look to tree-sitter-based
parsers as if two separate functions were being defined, though only the
second of which was ever finished. This resulted in the entire rest of
the file appearing to be nested inside the first function, meaning no
top-level function analysis was performed on them. This has various
knock-on effects on code analysis in tooling such as editors or
browsers.
The fix for it moves the `#ifdef` syntax inside the argument parentheses
to ensure that only one function appears to be created, so the entire
rest of the file is parsed as normal.1 parent d85c3a2 commit d507899
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1027 | 1027 | | |
1028 | 1028 | | |
1029 | 1029 | | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
1035 | 1037 | | |
1036 | 1038 | | |
1037 | 1039 | | |
| |||
0 commit comments