Skip to content
This repository has been archived by the owner on Aug 12, 2018. It is now read-only.

Commit

Permalink
Add VHDL block comments support.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Sep 30, 2014
1 parent e3126ff commit d9c20d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Notepad2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2174,7 +2174,7 @@ void MsgInitMenu(HWND hwnd,WPARAM wParam,LPARAM lParam)
i == SCLEX_SQL || i == SCLEX_PERL || i == SCLEX_PYTHON || i == SCLEX_PROPERTIES ||i == SCLEX_CONF ||
i == SCLEX_POWERSHELL || i == SCLEX_BATCH || i == SCLEX_DIFF || i == SCLEX_BASH || i == SCLEX_TCL ||
i == SCLEX_AU3 || i == SCLEX_LATEX || i == SCLEX_AHK || i == SCLEX_RUBY || i == SCLEX_CMAKE || i == SCLEX_MARKDOWN ||
i == SCLEX_YAML || i == SCLEX_VHDL));
i == SCLEX_YAML));

EnableCmd(hmenu,IDM_EDIT_INSERT_ENCODING,*mEncoding[iEncoding].pszParseNames);

Expand Down Expand Up @@ -3475,6 +3475,7 @@ LRESULT MsgCommand(HWND hwnd,WPARAM wParam,LPARAM lParam)
case SCLEX_CPP:
case SCLEX_NSIS:
case SCLEX_AVS:
case SCLEX_VHDL:
EditEncloseSelection(hwndEdit,L"/*",L"*/");
break;
case SCLEX_PASCAL:
Expand Down
2 changes: 1 addition & 1 deletion src/Styles.c
Original file line number Diff line number Diff line change
Expand Up @@ -2415,7 +2415,7 @@ KEYWORDLIST KeyWords_VHDL = {

EDITLEXER lexVHDL = { SCLEX_VHDL, 63370, L"VHDL", L"vhdl; vhd", L"", &KeyWords_VHDL, {
{ STYLE_DEFAULT, 63126, L"Default", L"", L"" },
{ MULTI_STYLE(SCE_VHDL_COMMENTLINEBANG, SCE_VHDL_COMMENT, 0, 0), 63127, L"Comment", L"fore:#008800", L"" },
{ MULTI_STYLE(SCE_VHDL_COMMENTLINEBANG, SCE_VHDL_COMMENT, SCE_VHDL_BLOCK_COMMENT, 0), 63127, L"Comment", L"fore:#008800", L"" },
{ SCE_VHDL_NUMBER, 63130, L"Number", L"fore:#FF0000", L"" },
{ MULTI_STYLE(SCE_VHDL_STRING, SCE_VHDL_STRINGEOL, 0, 0), 63131, L"String", L"fore:#008000", L"" },
{ SCE_VHDL_OPERATOR, 63132, L"Operator", L"fore:#B000B0", L"" },
Expand Down

0 comments on commit d9c20d3

Please sign in to comment.