diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dumbymap.mjs | 1 | ||||
-rw-r--r-- | src/editor.mjs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs index 6095f9c..a6029a5 100644 --- a/src/dumbymap.mjs +++ b/src/dumbymap.mjs | |||
@@ -240,6 +240,7 @@ export const generateMaps = async (container) => { | |||
240 | Object.assign(result, { markers: markersFromLinks }) | 240 | Object.assign(result, { markers: markersFromLinks }) |
241 | return result | 241 | return result |
242 | }) | 242 | }) |
243 | /* eslint-disable no-unused-vars */ | ||
243 | } catch (_) { | 244 | } catch (_) { |
244 | console.warn('Fail to parse yaml config for element', target) | 245 | console.warn('Fail to parse yaml config for element', target) |
245 | } | 246 | } |
diff --git a/src/editor.mjs b/src/editor.mjs index f1c90ed..04b4125 100644 --- a/src/editor.mjs +++ b/src/editor.mjs | |||
@@ -215,7 +215,7 @@ const getSuggestionsFromAliases = (option) => Object.entries(aliasesForMapOption | |||
215 | // }}} | 215 | // }}} |
216 | const handleTypingInCodeBlock = (currentLine, selection) => { | 216 | const handleTypingInCodeBlock = (currentLine, selection) => { |
217 | const text = currentLine.textContent | 217 | const text = currentLine.textContent |
218 | if (text.match(/^\s\+$/) && text.length % 2 != 0) { | 218 | if (text.match(/^\s\+$/) && text.length % 2 !== 0) { |
219 | // TODO Completion for even number of spaces | 219 | // TODO Completion for even number of spaces |
220 | } else if (text.match(/^-/)){ | 220 | } else if (text.match(/^-/)){ |
221 | // TODO Completion for YAML doc separator | 221 | // TODO Completion for YAML doc separator |