Skip to content

Commit d3d65ef

Browse files
committed
提供inspections,不识别的注释不再报错
1 parent 2bf4093 commit d3d65ef

File tree

11 files changed

+410
-187
lines changed

11 files changed

+410
-187
lines changed

EmmyLua-Common/src/main/ext/com/tang/intellij/lua/project/LuaSettings.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ class LuaSettings {
6161

6262
var varargHint = false
6363

64+
var overrideHint = false
65+
6466
companion object {
6567

6668
val instance: LuaSettings = LuaSettings()

EmmyLua-Common/src/main/gen/com/tang/intellij/lua/comment/parser/LuaDocParser.java

Lines changed: 29 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EmmyLua-Common/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocTagOther.java

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EmmyLua-Common/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocTypes.java

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EmmyLua-Common/src/main/gen/com/tang/intellij/lua/comment/psi/LuaDocVisitor.java

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EmmyLua-Common/src/main/gen/com/tang/intellij/lua/comment/psi/impl/LuaDocTagOtherImpl.java

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EmmyLua-Common/src/main/java/com/tang/intellij/lua/doc.bnf

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,12 @@ private doc_item ::= '@' (tag_param
9797
| tag_lan
9898
| tag_overload
9999
| tag_see
100-
| tag_def
101100
| access_modifier
102101
| tag_generic_list
103-
| tag_deprecated)
102+
| tag_deprecated
103+
| tag_def
104+
| tag_other
105+
)
104106

105107
ty ::= union_ty | function_ty | table_ty | generic_ty | arr_ty | general_ty | par_ty | string_literal_ty {
106108
implements = ['com.tang.intellij.lua.comment.psi.LuaDocType']
@@ -324,4 +326,9 @@ tag_suppress ::= TAG_NAME_SUPPRESS ID (',' ID)* {
324326

325327
tag_deprecated ::= TAG_NAME_DEPRECATED {
326328
pin = 1
327-
}
329+
}
330+
331+
tag_other ::= TAG_NAME comment_string? {
332+
pin = 1
333+
}
334+

0 commit comments

Comments
 (0)