0 Members and 1 Guest are viewing this topic.
<association ext = ".lsp" id="autolisp_function"/><parser id="autolisp_function" displayname="AutoLisp"> <function mainExpr="mainExpr="/([(defun])\w+$/ig" displayMode="$functionName"> <functionName> <nameExpr expr="/[_]\w+/igm"/> </functionName> </function></parser>
Looks to be the "stock" functionList.xml file?..
<parser id="lisp_function" displayName="Lisp"> <function mainExpr="[ \t]*\([ \t]*defun[ \t][a-zA-Z0-9_+\-*/<>=:.!?@%&|]+" displayMode="$className->$functionName"> </function></parser>
<association langID="30" id="lisp_function"/>
<parser id="lisp_function" displayName="Lisp"> <function mainExpr="[ \t]*\([ \t]*defun[ \t]+[a-zA-Z0-9_+\-*/<>=:.!?@%&|]+[ \t]+\([a-zA-Z0-9_+\-*/<>=:.!?@%&| \t]*\)" displayMode="$className->$functionName"> </function></parser>
(?s);\|.*?\|;
;.*$
<parser id="lisp_function" displayName="Lisp"> <function mainExpr="\(defun.*?\)" displayMode="$functionName"> </function> </parser>
New version no function list plug-in ,I still use old version
Quote from: 77077 on May 27, 2015, 08:46:39 PMNew version no function list plug-in ,I still use old versionIn the latest version V6.7.8.2 the function list works just fine.
@ 77077: Can you post your functionList.xml?
But that's the default file. You have to edit the file. That is what this topic is about...
Quote from: roy_043 on May 29, 2015, 08:05:07 AMBut that's the default file. You have to edit the file. That is what this topic is about...Hi roy ,Where has the edited file ?
<parser id="lisp_function" displayName="lsp" commentExpr="((;\|.*?\|;)|(;.*?$))"> <function mainExpr="(?<=[\s\(]defun\s)\s*[^\s\(]*" displayMode="$functionName"> </function></parser>
Hi royHere is simple routine...
That works pretty smoothly Roy, thanks!
roy ,I have a new question . set language ----> L--->LISP , ok, function list is ok set language ----> user define language---> function list not ok .
Quote from: 77077 on May 29, 2015, 10:29:30 PMroy ,I have a new question . set language ----> L--->LISP , ok, function list is ok set language ----> user define language---> function list not ok .The info you need is in the file...
for User Defined Languages:<association userDefinedLangName="my user defined language" id="my_udl_passer_id"/><association userDefinedLangName="Autocad" id="my_autocad_passer_id"/>
<association userDefinedLangName="LSP" id="lisp_function"/>
Info in the file:Code: [Select]for User Defined Languages:<association userDefinedLangName="my user defined language" id="my_udl_passer_id"/><association userDefinedLangName="Autocad" id="my_autocad_passer_id"/>So after:Code: [Select]<association langID="30" id="lisp_function"/>Insert:Code: [Select]<association userDefinedLangName="LSP" id="lisp_function"/>Change "LSP" to match your name.