Skip to content

Commit

Permalink
Use Elm CodeMirror syntax highlighting for Roc (#7047)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Aug 29, 2024
1 parent df10b7b commit d2c78ec
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ export const loadLanguageCompartment = async (
const { r } = await import('@codemirror/legacy-modes/mode/r')
return compartment.of(StreamLanguage.define(r))
}
case 'roc': {
const { elm } = await import('@codemirror/legacy-modes/mode/elm')
return compartment.of(StreamLanguage.define(elm))
}
case 'ruby': {
const { ruby } = await import('@codemirror/legacy-modes/mode/ruby')
return compartment.of(StreamLanguage.define(ruby))
Expand Down

0 comments on commit d2c78ec

Please sign in to comment.