FHIR / vscode-fsh

A Visual Studio Code language extension for FHIR Shorthand (FSH)
Apache License 2.0
18 stars 3 forks source link

Highlight strings in Context values #70

Closed mint-thompson closed 1 year ago

mint-thompson commented 1 year ago

Completes task CIMPL-1114.

Try it out with some FSH with lots of Context keywords to see how you feel about these highlights. FHIRPath strings get the usual double-quote style applied. Other contexts don't get any particular style applied. The , token is highlighted, which should be helpful, but might also be distracting? I kind of like it, though.

mint-thompson commented 1 year ago

@cmoesel I managed to make a small improvement that handles the case you posted. There are still some cases that aren't handled (please don't start your line with a comma), but it's pretty usable.