Skip to content

Commit

Permalink
Added 'italic' to styleTranslationTable
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli authored and xiaq committed Jan 11, 2017
1 parent 94e0275 commit 421d7cc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions edit/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
)

var styleForType = map[TokenKind]styles{
ParserError: styles{"red", "3"},
ParserError: styles{"red", "italic"},
Bareword: styles{},
SingleQuoted: styles{"red"},
DoubleQuoted: styles{"red"},
Expand Down Expand Up @@ -76,10 +76,9 @@ var styleForSep = map[string]string{
}

var styleTranslationTable = map[string]string{
//"unknown": "3",

"bold": "1",
"dim": "2",
"italic": "3",
"underlined": "4",
"blink": "5",
"inverse": "7",
Expand Down Expand Up @@ -124,8 +123,8 @@ var styleTranslationTable = map[string]string{
var (
styleForGoodCommand = styles{"green"}
styleForBadCommand = styles{"red"}
styleForBadVariable = styles{"red", "3"}
styleForCompilerError = styles{"red", "3"}
styleForBadVariable = styles{"red", "italic"}
styleForCompilerError = styles{"red", "italic"}
)

type styles []string
Expand Down

0 comments on commit 421d7cc

Please sign in to comment.