Use lang-less rather than legacy-modes

Depends-On: Idacec46392de59b9f46484db16675489fc668c16
Change-Id: I3b1a20b82b76d972b8ecf5543bc20045ef5840db
diff --git a/web/BUILD b/web/BUILD
index 5b3d662..fe28a56 100644
--- a/web/BUILD
+++ b/web/BUILD
@@ -63,6 +63,7 @@
         "@plugins_npm//@codemirror/lang-java",
         "@plugins_npm//@codemirror/lang-javascript",
         "@plugins_npm//@codemirror/lang-json",
+        "@plugins_npm//@codemirror/lang-less",
         "@plugins_npm//@codemirror/lang-markdown",
         "@plugins_npm//@codemirror/lang-php",
         "@plugins_npm//@codemirror/lang-python",
diff --git a/web/element/language.ts b/web/element/language.ts
index bb86da6..edeb053 100644
--- a/web/element/language.ts
+++ b/web/element/language.ts
@@ -20,7 +20,7 @@
 import {coffeeScript} from '@codemirror/legacy-modes/mode/coffeescript';
 import {commonLisp} from '@codemirror/legacy-modes/mode/commonlisp';
 import {crystal} from '@codemirror/legacy-modes/mode/crystal';
-import {less, gss} from '@codemirror/legacy-modes/mode/css';
+import {gss} from '@codemirror/legacy-modes/mode/css';
 import {cypher} from '@codemirror/legacy-modes/mode/cypher';
 import {d} from '@codemirror/legacy-modes/mode/d';
 import {dart} from '@codemirror/legacy-modes/mode/clike';
@@ -107,11 +107,12 @@
 import {z80} from '@codemirror/legacy-modes/mode/z80';
 
 import {cpp} from '@codemirror/lang-cpp';
-import {css as _css} from '@codemirror/lang-css';
+import {css} from '@codemirror/lang-css';
+import {html} from '@codemirror/lang-html';
 import {java} from '@codemirror/lang-java';
-import {html as _html} from '@codemirror/lang-html';
 import {javascript} from '@codemirror/lang-javascript';
 import {json} from '@codemirror/lang-json';
+import {less} from '@codemirror/lang-less';
 import {markdown} from '@codemirror/lang-markdown';
 import {php} from '@codemirror/lang-php';
 import {python} from '@codemirror/lang-python';
@@ -172,9 +173,9 @@
     case 'application/xml':
       return xml;
     case 'text/css':
-      return _css();
+      return css();
     case 'text/x-less':
-      return StreamLanguage.define(less);
+      return less();
     case 'text/x-scss':
       return sass();
     case 'text/x-gss':
@@ -206,7 +207,7 @@
     case 'application/x-ejs':
     case 'text/html':
     case 'application/x-jsp':
-      return _html();
+      return html();
     case 'application/x-erb':
     case 'text/x-ruby':
       return StreamLanguage.define(ruby);