gss_test.js 454 B

12345678910111213
  1. // CodeMirror, copyright (c) by Marijn Haverbeke and others
  2. // Distributed under an MIT license: https://codemirror.net/LICENSE
  3. ;(function () {
  4. 'use strict'
  5. var mode = CodeMirror.getMode({ indentUnit: 2 }, 'text/x-gss')
  6. function MT(name) {
  7. test.mode(name, mode, Array.prototype.slice.call(arguments, 1), 'gss')
  8. }
  9. MT('atComponent', '[def @component] {', '[tag foo] {', ' [property color]: [keyword black];', '}', '}')
  10. })()