Skip to content

Commit b0d6666

Browse files
committed
clean code
1 parent 238246a commit b0d6666

4 files changed

Lines changed: 0 additions & 37 deletions

File tree

crates/emmylua_ls/locales/tags/en.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,3 @@ tags.language: |
231231
INSERT INTO users (name, email) VALUES ('Alice', 'alice@example.com');
232232
]]
233233
```
234-
tags.attribute: |
235-
`attribute` tag defines an attribute. Attribute is used to attach extra information to a definition.
236-
Example:
237-
```lua
238-
---@attribute deprecated(message: string?)
239-
240-
---@class A
241-
---@[deprecated("delete")] # `b` field is marked as deprecated
242-
---@field b string
243-
---@[deprecated] # If `attribute` allows no parameters, the parentheses can be omitted
244-
---@field c string
245-
```

crates/emmylua_ls/locales/tags/zh_CN.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,3 @@ tags.language: |
231231
INSERT INTO users (name, email) VALUES ('Alice', 'alice@example.com');
232232
]]
233233
```
234-
tags.attribute: |
235-
`attribute` 标签定义一个特性。特性用于附加额外信息到定义。
236-
示例:
237-
```lua
238-
---@attribute deprecated(message: string?)
239-
240-
---@class A
241-
---@[deprecated("delete")]
242-
---@field b string # `b` 字段被标记为已弃用
243-
---@[deprecated] # 如果`attribute`允许无参数,则可以省略括号
244-
---@field c string
245-
```

crates/emmylua_ls/locales/tags/zh_HK.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,3 @@ tags.language: |
231231
INSERT INTO users (name, email) VALUES ('Alice', 'alice@example.com');
232232
]]
233233
```
234-
tags.attribute: |
235-
`attribute` 標籤定義一個特性。特性用於附加額外信息到定義。
236-
示例:
237-
```lua
238-
---@attribute deprecated(message: string?)
239-
240-
---@class A
241-
---@[deprecated("delete")] # `b` 字段被標記為已棄用
242-
---@field b string
243-
---@[deprecated] # 如果`attribute`允許無參數,則可以省略括號
244-
---@field c string
245-
```

crates/emmylua_ls/src/handlers/completion/data/doc_tags.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@ pub const DOC_TAGS: &[&str] = &[
3131
"readonly",
3232
"return_cast",
3333
"language",
34-
"attribute",
3534
];

0 commit comments

Comments
 (0)