Skip to content

Instantly share code, notes, and snippets.

@flavioc
Last active August 29, 2015 14:16
Show Gist options
  • Save flavioc/dc903794edb3cf851477 to your computer and use it in GitHub Desktop.
Save flavioc/dc903794edb3cf851477 to your computer and use it in GitHub Desktop.
Complete lisp identifiers with YouCompleteMe
diff --git a/ycmd/identifier_utils.py b/ycmd/identifier_utils.py
index 92b5ea8..e1cb29c 100644
--- a/ycmd/identifier_utils.py
+++ b/ycmd/identifier_utils.py
@@ -70,6 +70,8 @@ FILETYPE_TO_IDENTIFIER_REGEX = {
r"[-\*\+!_\?:\.a-zA-Z][-\*\+!_\?:\.\w]*/?[-\*\+!_\?:\.\w]*",
re.UNICODE ),
+ 'lisp': re.compile(r"[\_\#\:\/\<\%\.\?\&\*\+\w][^\s\)]*", re.UNICODE),
+
# Spec: http://www.haskell.org/onlinereport/lexemes.html
# Section 2.4
'haskell': re.compile( r"[_a-zA-Z][\w']*", re.UNICODE ),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment