 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
4sdf Guest
|
Posted: Sun Dec 09, 2007 3:13 pm Post subject: |
|
|
im close now.
ive compiled sc1 with my preferences. everything works except ahk SH... when i open .ahk all text is greyed out.
ive put LexAHK1.cxx in scintilla\src before nmake of scintilla. also the ahk1.properties is in scite\src before nmake
so what could be wrong? |
|
| Back to top |
|
 |
4sdf Guest
|
Posted: Sun Dec 09, 2007 3:34 pm Post subject: |
|
|
ahk1.properties is in scite\src
uhm that doesnt mather ..that is also in embedded.properties |
|
| Back to top |
|
 |
4sdf Guest
|
Posted: Sun Dec 09, 2007 4:22 pm Post subject: |
|
|
| ive found the problem. but how do i run lexgen.py? |
|
| Back to top |
|
 |
4sdf Guest
|
Posted: Sun Dec 09, 2007 5:37 pm Post subject: |
|
|
| Quote: | cl -Zi -TP -W4 -Zc:forScope -Zc:wchar_t -D_CRT_SECURE_NO_DEPRECATE=1 -O1
-MT -DNDEBUG -GL -I../include -I../src -c -Fo.\LexAHK1.obj ..\src\LexAHK1.cxx
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
LexAHK1.cxx
..\src\LexAHK1.cxx(5 : error C2065: 'SCE_AHK_WORD_CF' : undeclared identifier
..\src\LexAHK1.cxx(60) : error C2065: 'SCE_AHK_WORD_CMD' : undeclared identifier
..\src\LexAHK1.cxx(62) : error C2065: 'SCE_AHK_WORD_FN' : undeclared identifier
..\src\LexAHK1.cxx(64) : error C2065: 'SCE_AHK_WORD_DIR' : undeclared identifier
..\src\LexAHK1.cxx(66) : error C2065: 'SCE_AHK_WORD_KB' : undeclared identifier
..\src\LexAHK1.cxx(6 : error C2065: 'SCE_AHK_WORD_VAR' : undeclared identifier
..\src\LexAHK1.cxx(70) : error C2065: 'SCE_AHK_WORD_SP' : undeclared identifier
..\src\LexAHK1.cxx(72) : error C2065: 'SCE_AHK_WORD_UD' : undeclared identifier
..\src\LexAHK1.cxx(74) : error C2065: 'SCE_AHK_DEFAULT' : undeclared identifier
..\src\LexAHK1.cxx(90) : error C2065: 'SCE_AHK_COMMENTBLOCK' : undeclared identi
fier
..\src\LexAHK1.cxx(91) : error C2065: 'SCE_AHK_STRING' : undeclared identifier
..\src\LexAHK1.cxx(92) : error C3861: 'SCE_AHK_DEFAULT': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(103) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(126) : error C2065: 'SCE_AHK_SYNOPERATOR' : undeclared identi
fier
..\src\LexAHK1.cxx(128) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(134) : error C2065: 'SCE_AHK_LABEL' : undeclared identifier
..\src\LexAHK1.cxx(137) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(140) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(149) : error C2065: 'SCE_AHK_COMMENTLINE' : undeclared identi
fier
..\src\LexAHK1.cxx(150) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(155) : error C2065: 'SCE_AHK_ESCAPE' : undeclared identifier
..\src\LexAHK1.cxx(161) : error C2065: 'SCE_AHK_VARREF' : undeclared identifier
..\src\LexAHK1.cxx(162) : error C2065: 'SCE_AHK_VARREFKW' : undeclared identifie
r
..\src\LexAHK1.cxx(163) : error C2065: 'SCE_AHK_ERROR' : undeclared identifier
..\src\LexAHK1.cxx(165) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(167) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(175) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(176) : error C3861: 'SCE_AHK_VARREF': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(180) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(197) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(198) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(199) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(205) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(207) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(215) : error C3861: 'SCE_AHK_WORD_KB': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(217) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(220) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(235) : error C3861: 'SCE_AHK_COMMENTLINE': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(237) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(239) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(245) : error C2065: 'SCE_AHK_EXPOPERATOR' : undeclared identi
fier
..\src\LexAHK1.cxx(247) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(249) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(254) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(263) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(266) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(271) : error C3861: 'SCE_AHK_COMMENTLINE': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(274) : error C2065: 'SCE_AHK_NUMBER' : undeclared identifier
..\src\LexAHK1.cxx(278) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(281) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(283) : error C2065: 'SCE_AHK_IDENTIFIER' : undeclared identif
ier
..\src\LexAHK1.cxx(290) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(292) : error C3861: 'SCE_AHK_VARREF': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(297) : error C3861: 'SCE_AHK_VARREFKW': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(299) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(304) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(306) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(309) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(313) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(319) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(323) : error C3861: 'SCE_AHK_COMMENTLINE': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(326) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(330) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(334) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(335) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(343) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(345) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(347) : error C3861: 'SCE_AHK_EXPOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(350) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(354) : error C3861: 'SCE_AHK_NUMBER': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(357) : error C3861: 'SCE_AHK_NUMBER': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(359) : error C3861: 'SCE_AHK_IDENTIFIER': identifier not foun
d, even with argument-dependent lookup
..\src\LexAHK1.cxx(361) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(362) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(367) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(371) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(374) : error C3861: 'SCE_AHK_IDENTIFIER': identifier not foun
d, even with argument-dependent lookup
..\src\LexAHK1.cxx(382) : error C3861: 'SCE_AHK_IDENTIFIER': identifier not foun
d, even with argument-dependent lookup
..\src\LexAHK1.cxx(385) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(386) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(387) : error C3861: 'SCE_AHK_VARREF': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(388) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(415) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(416) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(418) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(423) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(464) : error C2065: 'SCLEX_AHK' : undeclared identifier
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop. |
|
|
| Back to top |
|
 |
4sdf Guest
|
|
| Back to top |
|
 |
urlwolf
Joined: 16 Mar 2006 Posts: 100
|
Posted: Thu Dec 27, 2007 12:52 am Post subject: |
|
|
| mosaic wrote: | Greetings PhiLho/Toralf and others,
I did not realize there is another topic on Notepad++ here. While I like the syntax highlighting, the function list plugin is way more powerful, it allows one to browse the code efficiently.
The following is the screen shot, you can see the function list on the right side panel. What's useful is not simply the list of functions (notice I have customized it to recognize the include directive as well, by the way, in Notepad++, one can highlight the included filename, hit a hotkey Alt+F5 to open that file???), one can also double click on the function name, it will automatically go to the begining of the function (subroutine) definition:
In terms of Syntax Highlighting/Folding feature, I would like to see the provision of Subroutine folding, currently, the UserDefineLang.xml can do the folding for function fairly well, but not for subroutines.
In the above screenshot, you can notice that in the bottom, I made a dock window (based on majk..'s dock), which displayed some file info, there are also four text button on the right bottom: R/W, Load, 2Dir, Explorer, these are quick buttons to toggle the read/write attribute of the edited file, Load the script if it is AHK script, Goto the command window of the directory where the edited file resides, Explorer the directory where the edited file resides. Quite handy for myself.
Let me know PhiLho when you are ready to make improvement on your lexer, I am willing to test it. Toralf, I realized that you are ready to try Notepad++, have you tried it yet? |
Mosaic, that's very impressive. How did you get the lexer to work with notepad++? In this thread, everybody said it's not possible. I also love the function list plugin (working with ahk!).
I you could post a step-by-step guide to get those two things to work, that'd be great!
Thanks |
|
| Back to top |
|
 |
Boskoop
Joined: 01 Jan 2005 Posts: 71
|
Posted: Tue Feb 12, 2008 7:19 pm Post subject: |
|
|
Apparently, Notepad++ 4.7 supports external lexers
| Quote: | | As well, besides the User Language Define System, the new language (Scintilla external lexer) can be added in Notepad++ under the plugin form. |
(http://notepad-plus.sourceforge.net/uk/news.php?lang=uk)
So I just copied the AHK-lexer SciLexer.dll and the ahk1.properties- files into the plugin directory. But all I got was an error message:
| Quote: | Load Library is failed.
Make "Runtime Library" setting of this project as "Multi-threaded(/MT)" may cure this problem.
This plugin is not compatible with current version of Notepad++.
Remove this plugin from plugins directory if you don't want to see this message on the next launch time. |
Maybe the installation is a little more complicated than just copying files. Does anyone know more about it? Or is it necessary to change the lexer?
Thanks
Boskoop |
|
| Back to top |
|
 |
thibeaz
Joined: 22 Mar 2008 Posts: 4 Location: At my computer
|
Posted: Tue Jul 01, 2008 12:44 am Post subject: |
|
|
| Quote: | cl -Zi -TP -W4 -Zc:forScope -Zc:wchar_t -D_CRT_SECURE_NO_DEPRECATE=1 -O1
-MT -DNDEBUG -GL -I../include -I../src -c -Fo.\LexAHK1.obj ..\src\LexAHK1.cxx
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
LexAHK1.cxx
..\src\LexAHK1.cxx(5 : error C2065: 'SCE_AHK_WORD_CF' : undeclared identifier
..\src\LexAHK1.cxx(60) : error C2065: 'SCE_AHK_WORD_CMD' : undeclared identifier
..\src\LexAHK1.cxx(62) : error C2065: 'SCE_AHK_WORD_FN' : undeclared identifier
..\src\LexAHK1.cxx(64) : error C2065: 'SCE_AHK_WORD_DIR' : undeclared identifier
..\src\LexAHK1.cxx(66) : error C2065: 'SCE_AHK_WORD_KB' : undeclared identifier
..\src\LexAHK1.cxx(6 : error C2065: 'SCE_AHK_WORD_VAR' : undeclared identifier
..\src\LexAHK1.cxx(70) : error C2065: 'SCE_AHK_WORD_SP' : undeclared identifier
..\src\LexAHK1.cxx(72) : error C2065: 'SCE_AHK_WORD_UD' : undeclared identifier
..\src\LexAHK1.cxx(74) : error C2065: 'SCE_AHK_DEFAULT' : undeclared identifier
..\src\LexAHK1.cxx(90) : error C2065: 'SCE_AHK_COMMENTBLOCK' : undeclared identi
fier
..\src\LexAHK1.cxx(91) : error C2065: 'SCE_AHK_STRING' : undeclared identifier
..\src\LexAHK1.cxx(92) : error C3861: 'SCE_AHK_DEFAULT': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(103) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(126) : error C2065: 'SCE_AHK_SYNOPERATOR' : undeclared identi
fier
..\src\LexAHK1.cxx(128) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(134) : error C2065: 'SCE_AHK_LABEL' : undeclared identifier
..\src\LexAHK1.cxx(137) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(140) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(149) : error C2065: 'SCE_AHK_COMMENTLINE' : undeclared identi
fier
..\src\LexAHK1.cxx(150) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(155) : error C2065: 'SCE_AHK_ESCAPE' : undeclared identifier
..\src\LexAHK1.cxx(161) : error C2065: 'SCE_AHK_VARREF' : undeclared identifier
..\src\LexAHK1.cxx(162) : error C2065: 'SCE_AHK_VARREFKW' : undeclared identifie
r
..\src\LexAHK1.cxx(163) : error C2065: 'SCE_AHK_ERROR' : undeclared identifier
..\src\LexAHK1.cxx(165) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(167) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(175) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(176) : error C3861: 'SCE_AHK_VARREF': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(180) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(197) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(198) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(199) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(205) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(207) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(215) : error C3861: 'SCE_AHK_WORD_KB': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(217) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(220) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(235) : error C3861: 'SCE_AHK_COMMENTLINE': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(237) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(239) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(245) : error C2065: 'SCE_AHK_EXPOPERATOR' : undeclared identi
fier
..\src\LexAHK1.cxx(247) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(249) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(254) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(263) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(266) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(271) : error C3861: 'SCE_AHK_COMMENTLINE': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(274) : error C2065: 'SCE_AHK_NUMBER' : undeclared identifier
..\src\LexAHK1.cxx(278) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(281) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(283) : error C2065: 'SCE_AHK_IDENTIFIER' : undeclared identif
ier
..\src\LexAHK1.cxx(290) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(292) : error C3861: 'SCE_AHK_VARREF': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(297) : error C3861: 'SCE_AHK_VARREFKW': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(299) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(304) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(306) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(309) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(313) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(319) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(323) : error C3861: 'SCE_AHK_COMMENTLINE': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(326) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(330) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(334) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(335) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(343) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(345) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(347) : error C3861: 'SCE_AHK_EXPOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(350) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(354) : error C3861: 'SCE_AHK_NUMBER': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(357) : error C3861: 'SCE_AHK_NUMBER': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(359) : error C3861: 'SCE_AHK_IDENTIFIER': identifier not foun
d, even with argument-dependent lookup
..\src\LexAHK1.cxx(361) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(362) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(367) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(371) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(374) : error C3861: 'SCE_AHK_IDENTIFIER': identifier not foun
d, even with argument-dependent lookup
..\src\LexAHK1.cxx(382) : error C3861: 'SCE_AHK_IDENTIFIER': identifier not foun
d, even with argument-dependent lookup
..\src\LexAHK1.cxx(385) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(386) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(387) : error C3861: 'SCE_AHK_VARREF': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(388) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(415) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(416) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(418) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(423) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(464) : error C2065: 'SCLEX_AHK' : undeclared identifier
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop. |
I got this message trying to compile scite and also trying to add this lexer into Notepad2 does someone mind pointing me towards a solution? _________________ My Blogs | My Blogs Forums |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Wed Jul 02, 2008 7:48 am Post subject: Update to 1.76! |
|
|
A quick note to say I finally found some time to finish a little script I started months ago (!) which injects the stuff needed to add LexAHK1 into Scintilla.
This allows quick and hopefully reliable updates, by myself, or yourself if you have a compiler!
The previous version of SciTE with AHK support was badly outdated (1.71!) and SciTE has quite improved since then, supporting Lua 5.1, improving the session file format, etc.
I made a package with the whole stuff, binary and files useful to recompile if you need them.
Get it at: SciTE4AHK.zip
I will lazily paste here the content of the README file I made:
| Quote: | In this package, I give the new binary (v.1.76) of SciTE (with Lua) and Scintilla (actually SciLexer.dll) compiled with Visual Studio Express 2005, including support of AHK v.1.
I also provide tools to recompile them, in case I still lag behind the latest versions of SciTE...
AddLexAHK1.ahk is an AutoHotkey script which injects the minimal code to add the LexAHK.cxx to Scintilla: it copies this file in the sources and edit SciLexer.h and KeyWords.cxx to add the required declarations.
It assumes a given directory structure, you have to edit the first lines to adapt to your setting.
LexAHK1.cxx is thus the lexer for AutoHotkey v.1: I expect v.2 to be largely different in syntax, hence the provision for another version. The state names will be likely shared, though.
SciLexer.vcproj have to be put in scintilla\vcbuild, it is the project file for VSE2005 I used to make SciLexer.dll
SciTELua.vcproj and SciTE.vcproj have to be put in scite\vcbuild. SciTELua have to be compiled first (optimized for speed...) and SciTE will use the corresponding library.
SciLexer and SciTE are optimized for size, like in the original makefiles.
ahk1.properties is my current properties file for the lexer. Adjust the autohotkeydir setting to your configuration.
SciLexer.dll, SciTE.exe and ahk1.properties have to be dropped in the SciTE install dir, the first two replacing the provided binaries (I suggest to save them just in case...).
OpenSciTESession.ahk can be put in the SciTE directory. With proper registry settings (see SciTE.reg), you can double-click a session file to open the related files in an instance of SciTE.
SciTE.reg contains the registry hacks I apply to integrate SciTE to Windows (open by default for some file types, always in context menu, etc.).
SciTEUser.properties is an example of user defined properties, with some personal settings, and an example of including AHK lexer (in open filter, lexer list and import).
SciTEStartup.lua is a slightly stripped down version of my collection of Lua functions, including a call to ListAHKFunctions4SciTE.lua!
Some things there are useless or unused, I left these as code sample... Deep clean-up advised!
|
I fear I don't come must often here, so I am not sure if I will answer any question in decent time. But I will try and take a look from time to time.
Enjoy!
PS.: I haven't fully read the messages above, but it looks like Notepad+ now support external lexers? I will try again. Perhaps the new SciLexer was the missing piece of the puzzle? Will go back here and see the issues. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
BoBo² Guest
|
Posted: Wed Jul 02, 2008 9:42 am Post subject: |
|
|
| Quote: | | I fear I don't come must often here | *sigh* |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|