/**
 * Shell/Bash language support for CodeMirror 6
 * Uses @codemirror/legacy-modes/mode/shell with StreamLanguage wrapper
 */

import { StreamLanguage } from '@codemirror/language'
import { shell } from '@codemirror/legacy-modes/mode/shell'
import { type Extension } from '@codemirror/state'

/** Shell/Bash language support for CodeMirror */
export function shellLanguage(): Extension {
  return StreamLanguage.define(shell)
}
