Any ways to patch incorrect VSCode syntax highlights?

in swift 5.9, attributes like @frozen, @inlinable, etc. are incorrectly highlighted as identifiers rather than keywords/attributes.

image

image

this was a known issue that has already been fixed in main but evidently the fix didn’t make it into the 5.9 release.

in the meantime, is there anything we can do (short of switching to a 5.10 nightly) to get the right highlighting on 5.9?

2 Likes

this is also affecting actor names: sourcekit-lsp does not recognize actor names as types · Issue #694 · apple/sourcekit-lsp · GitHub