Commit ab85b8d
committed
Don't highlight top-level-only keywords at different levels
The keywords being modified here only represented keywords when they
are at the beginning of a line with optional indentation.
At different levels these would represent valid record fields or other
identifiers.
This was tested by adding the following code to a PureScript file:
type Foo = { type :: Int
, module :: Int
, import :: Int
, data :: Int
, class :: Int
, newtype :: Int
}
…and checking that compilation succeeds.1 parent d187b3d commit ab85b8d
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
175 | 182 | | |
176 | 183 | | |
177 | 184 | | |
178 | 185 | | |
179 | 186 | | |
180 | 187 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
| 188 | + | |
| 189 | + | |
185 | 190 | | |
186 | 191 | | |
187 | 192 | | |
| |||
210 | 215 | | |
211 | 216 | | |
212 | 217 | | |
| 218 | + | |
213 | 219 | | |
214 | 220 | | |
215 | 221 | | |
| |||
0 commit comments