🚧 Improve HTTP language parser

This commit is contained in:
2025-11-01 21:40:51 +08:00
parent 93c85b800b
commit 94306497a9
9 changed files with 562 additions and 170 deletions

View File

@@ -1,28 +1,3 @@
/**
* 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 { http, httpLanguage } from './http-language';
export { parser } from './http.parser';
// 类型定义
export type { LRLanguage } from '@codemirror/language';