🚧 Optimized HTTP language parser

This commit is contained in:
2025-11-01 17:42:22 +08:00
parent 8ac78e39f1
commit 93c85b800b
24 changed files with 1945 additions and 582 deletions

View File

@@ -1,3 +1,28 @@
export { http, httpLanguage, httpHighlighting } from './http-language';
export { parser } from './http.grammar.js';
/**
* HTTP Client 语言支持
*
* 基于 CSS 语法结构的简化 HTTP 请求语言
*
* 语法示例:
* ```http
* POST http://127.0.0.1:80/api/create {
* host: "https://api.example.com";
* content-type: "application/json";
*
* @json {
* name: "xxx";
* }
*
* @res {
* code: 200;
* status: "ok";
* }
* }
* ```
*/
export { http, httpLanguage, httpHighlighting } from './http-language';
export { parser } from './http.parser';
// 类型定义
export type { LRLanguage } from '@codemirror/language';