diff options
Diffstat (limited to 'script/core/diagnostics/duplicate-doc-field.lua')
-rw-r--r-- | script/core/diagnostics/duplicate-doc-field.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/script/core/diagnostics/duplicate-doc-field.lua b/script/core/diagnostics/duplicate-doc-field.lua index 1ee27ff2..ab3084c9 100644 --- a/script/core/diagnostics/duplicate-doc-field.lua +++ b/script/core/diagnostics/duplicate-doc-field.lua @@ -1,5 +1,6 @@ local files = require 'files' local lang = require 'language' +local noder = require 'core.noder' return function (uri, callback) local state = files.getState(uri) @@ -19,6 +20,10 @@ return function (uri, callback) elseif doc.type == 'doc.field' then if mark then local name = doc.field[1] + local eventName = noder.getFieldEventName(doc) + if eventName then + name = name .. '|' .. eventName + end if mark[name] then callback { start = doc.field.start, |