Merge pull request #268 from Rikk/patch-2

[UPDATE] Add CSS to languages that are auto-indented
This commit is contained in:
Don HO 2015-06-24 00:38:18 +02:00
commit 3df3636f09

View File

@ -2361,7 +2361,7 @@ void Notepad_plus::maintainIndentation(TCHAR ch)
LangType type = _pEditView->getCurrentBuffer()->getLangType(); LangType type = _pEditView->getCurrentBuffer()->getLangType();
if (type == L_C || type == L_CPP || type == L_JAVA || type == L_CS || type == L_OBJC || if (type == L_C || type == L_CPP || type == L_JAVA || type == L_CS || type == L_OBJC ||
type == L_PHP || type == L_JS || type == L_JSP) type == L_PHP || type == L_JS || type == L_JSP || type == L_CSS)
{ {
if (((eolMode == SC_EOL_CRLF || eolMode == SC_EOL_LF) && ch == '\n') || if (((eolMode == SC_EOL_CRLF || eolMode == SC_EOL_LF) && ch == '\n') ||
(eolMode == SC_EOL_CR && ch == '\r')) (eolMode == SC_EOL_CR && ch == '\r'))