Permalink
Browse files

Added menu item for the key bindings. More member regex tweaks

  • Loading branch information...
1 parent c868b6e commit b9e0ba5d9466634019a6b7179e62006453e672b8 @quarnster committed Dec 27, 2011
Showing with 33 additions and 2 deletions.
  1. +32 −1 Main.sublime-menu
  2. +1 −1 sublimeclang.py
View
33 Main.sublime-menu
@@ -29,7 +29,38 @@
},
"caption": "Settings – User"
},
- { "caption": "-" }
+ { "caption": "-" },
+ {
+ "command": "open_file", "args":
+ {
+ "file": "${packages}/SublimeClang/Default.sublime-keymap"
+ },
+ "caption": "Key Bindings – Default"
+ },
+ {
+ "command": "open_file", "args":
+ {
+ "file": "${packages}/User/Default (OSX).sublime-keymap",
+ "platform": "OSX"
+ },
+ "caption": "Key Bindings – User"
+ },
+ {
+ "command": "open_file", "args":
+ {
+ "file": "${packages}/User/Default (Linux).sublime-keymap",
+ "platform": "Linux"
+ },
+ "caption": "Key Bindings – User"
+ },
+ {
+ "command": "open_file",
+ "args": {
+ "file": "${packages}/User/Default (Windows).sublime-keymap",
+ "platform": "Windows"
+ },
+ "caption": "Key Bindings – User"
+ }
]
}
]
View
2 sublimeclang.py
@@ -557,7 +557,7 @@ def __init__(self):
self.load_settings(s)
self.recompile_timer = None
self.complete_timer = None
- self.member_regex = re.compile("[a-zA-Z]+[\'\"0-9_\(\)\[\]]*((\.)|(->))$")
+ self.member_regex = re.compile("(([a-zA-Z_]+[0-9_]*)|([\)\]])+)((\.)|(->))$")
self.not_code_regex = re.compile("(string.)|(comment.)")
def load_settings(self, s=None):

0 comments on commit b9e0ba5

Please sign in to comment.