Commit 9adb369
authored
fix: improved error messages (#224)
Currently, when the parser encounters an invalid keyword inside a function or a structure it gives an invalid function statement or invalid member definition error instead of stating that an invalid keyword was found. This was written as a response to the feature request of better error messages when loops are used inside structs but expands on it to include all possible invalid keywords1 parent a9a93ab commit 9adb369
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
970 | 970 | | |
971 | 971 | | |
972 | 972 | | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
973 | 976 | | |
974 | 977 | | |
975 | 978 | | |
| |||
1930 | 1933 | | |
1931 | 1934 | | |
1932 | 1935 | | |
1933 | | - | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
1934 | 1940 | | |
1935 | 1941 | | |
1936 | 1942 | | |
| |||
0 commit comments