mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-28 14:56:52 +08:00
#1888 Support names with minuses in Clojure and Lisp
This commit is contained in:
@@ -43,3 +43,23 @@ Execute(Completion should be done after words in parens in Rust):
|
||||
|
||||
Execute(Completion should not be done after parens in Rust):
|
||||
AssertEqual '', ale#completion#GetPrefix(&filetype, 3, 15)
|
||||
|
||||
Given lisp():
|
||||
(minus-name
|
||||
(full-name)
|
||||
|
||||
Execute(Completion should be done for function names with minuses in Lisp):
|
||||
AssertEqual 'minus-name', ale#completion#GetPrefix(&filetype, 1, 12)
|
||||
|
||||
Execute(Completion should not be done after parens in Lisp):
|
||||
AssertEqual '', ale#completion#GetPrefix(&filetype, 2, 12)
|
||||
|
||||
Given clojure():
|
||||
(minus-name
|
||||
(full-name)
|
||||
|
||||
Execute(Completion should be done for function names with minuses in Clojure):
|
||||
AssertEqual 'minus-name', ale#completion#GetPrefix(&filetype, 1, 12)
|
||||
|
||||
Execute(Completion should not be done after parens in Clojure):
|
||||
AssertEqual '', ale#completion#GetPrefix(&filetype, 2, 12)
|
||||
|
||||
Reference in New Issue
Block a user