more specific regex.
This commit is contained in:
parent
2740a265cb
commit
fd6cb3ebf9
@ -179,7 +179,7 @@ unloaded modules are loaded")
|
|||||||
(let ((beg (save-excursion (beginning-of-line) (point)))
|
(let ((beg (save-excursion (beginning-of-line) (point)))
|
||||||
(regex (save-excursion
|
(regex (save-excursion
|
||||||
(beginning-of-line)
|
(beginning-of-line)
|
||||||
(if (looking-at "import") "[ (,`]" "[ (,`.]"))))
|
(if (looking-at "^import ") "[ (,`]" "[ (,`.]"))))
|
||||||
(if (re-search-backward regex beg t)
|
(if (re-search-backward regex beg t)
|
||||||
(1+ (point))
|
(1+ (point))
|
||||||
beg))))
|
beg))))
|
||||||
|
Loading…
Reference in New Issue
Block a user