diff options
author | Neil <nyamatongwe@gmail.com> | 2017-04-05 16:38:20 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-04-05 16:38:20 +1000 |
commit | 9397ad87a1aae0e06224c3050ed86f169303fa09 (patch) | |
tree | 3337bb8c0e3c8f9895f5c99219c905477475c900 /lexers/LexPowerShell.cxx | |
parent | 9f548b3f527a48f06f9dfdc1fe9452126488384e (diff) | |
download | scintilla-mirror-9397ad87a1aae0e06224c3050ed86f169303fa09.tar.gz |
Made formatting more consistent by running astyle.
Diffstat (limited to 'lexers/LexPowerShell.cxx')
-rw-r--r-- | lexers/LexPowerShell.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lexers/LexPowerShell.cxx b/lexers/LexPowerShell.cxx index 261575544..0b744c4eb 100644 --- a/lexers/LexPowerShell.cxx +++ b/lexers/LexPowerShell.cxx @@ -33,7 +33,7 @@ static inline bool IsAWordChar(int ch) { } static void ColourisePowerShellDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, - WordList *keywordlists[], Accessor &styler) { + WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; @@ -53,8 +53,8 @@ static void ColourisePowerShellDoc(Sci_PositionU startPos, Sci_Position length, sc.SetState(SCE_POWERSHELL_DEFAULT); } } else if (sc.state == SCE_POWERSHELL_COMMENTSTREAM) { - if(sc.atLineStart) { - while(IsASpaceOrTab(sc.ch)) { + if (sc.atLineStart) { + while (IsASpaceOrTab(sc.ch)) { sc.Forward(); } if (sc.ch == '.' && IsAWordChar(sc.chNext)) { @@ -65,7 +65,7 @@ static void ColourisePowerShellDoc(Sci_PositionU startPos, Sci_Position length, sc.ForwardSetState(SCE_POWERSHELL_DEFAULT); } } else if (sc.state == SCE_POWERSHELL_COMMENTDOCKEYWORD) { - if(!IsAWordChar(sc.ch)) { + if (!IsAWordChar(sc.ch)) { char s[100]; sc.GetCurrentLowered(s, sizeof(s)); if (!keywords6.InList(s + 1)) { @@ -165,7 +165,7 @@ static void ColourisePowerShellDoc(Sci_PositionU startPos, Sci_Position length, // level store to make it easy to pick up with each increment // and to make it possible to fiddle the current level for "} else {". static void FoldPowerShellDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, - WordList *[], Accessor &styler) { + WordList *[], Accessor &styler) { bool foldComment = styler.GetPropertyInt("fold.comment") != 0; bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; bool foldAtElse = styler.GetPropertyInt("fold.at.else", 0) != 0; @@ -240,7 +240,7 @@ static void FoldPowerShellDoc(Sci_PositionU startPos, Sci_Position length, int i } } -static const char * const powershellWordLists[] = { +static const char *const powershellWordLists[] = { "Commands", "Cmdlets", "Aliases", |