Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added smart_list support for *

  • Loading branch information...
commit f8b67a02797a82ad56282494c756c02ee6510073 1 parent dc9fbae
@Iristyle Iristyle authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  Default.sublime-keymap
  2. +2 −2 smart_list.py
View
2  Default.sublime-keymap
@@ -12,7 +12,7 @@
{ "keys": ["enter"], "command": "smart_list", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown" },
- { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*([-+*]|\\d+\\.+)\\s+" }
+ { "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*([-+\\**]|\\d+\\.+)\\s+" }
]
},
{ "keys": ["enter"], "command": "smart_list", "context":
View
4 smart_list.py
@@ -8,8 +8,8 @@
ORDER_LIST_PATTERN = re.compile(r"(\s*)(\d+)(\.\s+)\S+")
-UNORDER_LIST_PATTERN = re.compile(r"(\s*[-+*]+)(\s+)\S+")
-EMPTY_LIST_PATTERN = re.compile(r"(\s*([-+*]|\d+\.+))\s+$")
+UNORDER_LIST_PATTERN = re.compile(r"(\s*[-+\**]+)(\s+)\S+")
+EMPTY_LIST_PATTERN = re.compile(r"(\s*([-+\**]|\d+\.+))\s+$")
class SmartListCommand(sublime_plugin.TextCommand):
Please sign in to comment.
Something went wrong with that request. Please try again.