Skip to content

Commit

Permalink
several fixes (#114)
Browse files Browse the repository at this point in the history
* fix behavior when using enters doc comment

* fix #113
  • Loading branch information
timotheecour authored and Varriount committed Nov 3, 2018
1 parent d71fd1a commit faca2c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},

// Multi-line doc-comment completion
{ "keys": ["["], "command": "insert_snippet", "args": {"contents": "[ $0 ]#"}, "context":
{ "keys": ["["], "command": "insert_snippet", "args": {"contents": "[\n$0\n]#"}, "context":
[
{ "key": "selector", "operator":"equal", "operand": "punctuation.definition.comment.nim"}
]
Expand Down
2 changes: 2 additions & 0 deletions nimlime_core/commands/nimcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def highlight_and_list_messages(self, messages, window, view):
warn_region_list = []

for file_name, row, column, kind, message, all_msg in messages:
# TODO: more robust in case multiple names are allowed, PENDING https://github.com/nim-lang/Nim/pull/8614
file_name = os.path.basename(file_name)
if file_name.lower() != view_name.lower():
continue

Expand Down

0 comments on commit faca2c5

Please sign in to comment.