Uses the grammar marijn made :) (#2967)
* Add a Lezer KCL grammar * fmt Signed-off-by: Jess Frazelle <github@jessfraz.com> * make tsc happy Signed-off-by: Jess Frazelle <github@jessfraz.com> * turn off semantic tokens in favor of grammar Signed-off-by: Jess Frazelle <github@jessfraz.com> * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu) * fixups Signed-off-by: Jess Frazelle <github@jessfraz.com> * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu) * empty --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: Marijn Haverbeke <marijn@haverbeke.berlin> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
		@ -3,6 +3,8 @@ import viteTsconfigPaths from 'vite-tsconfig-paths'
 | 
			
		||||
import eslint from 'vite-plugin-eslint'
 | 
			
		||||
import { defineConfig, configDefaults } from 'vitest/config'
 | 
			
		||||
import version from 'vite-plugin-package-version'
 | 
			
		||||
// @ts-ignore: No types available
 | 
			
		||||
import { lezer } from '@lezer/generator/rollup'
 | 
			
		||||
 | 
			
		||||
const config = defineConfig({
 | 
			
		||||
  server: {
 | 
			
		||||
@ -58,7 +60,7 @@ const config = defineConfig({
 | 
			
		||||
      '@kittycad/codemirror-lsp-client': '/packages/codemirror-lsp-client/src',
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  plugins: [react(), viteTsconfigPaths(), eslint(), version()],
 | 
			
		||||
  plugins: [react(), viteTsconfigPaths(), eslint(), version(), lezer()],
 | 
			
		||||
  worker: {
 | 
			
		||||
    plugins: () => [viteTsconfigPaths()],
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user