diff --git a/src/Notepad2.c b/src/Notepad2.c index 2275ccf0..aa461469 100644 --- a/src/Notepad2.c +++ b/src/Notepad2.c @@ -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); @@ -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: diff --git a/src/Styles.c b/src/Styles.c index ec6ac5fa..33c29144 100644 --- a/src/Styles.c +++ b/src/Styles.c @@ -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"" },