diff options
author | Ask Bjørn Hansen <[email protected]> | 2014-02-16 01:20:46 -0800 |
---|---|---|
committer | spf13 <[email protected]> | 2014-02-18 18:44:27 -0500 |
commit | 1dbed5ee06a6a0ce4111e057282994aac3dc5123 (patch) | |
tree | fb23c0d69b896da48a66f5f4929a5579b564db60 /parser | |
parent | 8ebb85f1f70baabefa8c21cc21bffbef2a187129 (diff) | |
download | hugo-1dbed5ee06a6a0ce4111e057282994aac3dc5123.tar.gz hugo-1dbed5ee06a6a0ce4111e057282994aac3dc5123.zip |
Call the json delimiter 'json_lead' instead of 'java_lead'
Diffstat (limited to 'parser')
-rw-r--r-- | parser/page.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parser/page.go b/parser/page.go index 54b5acfb9..265f78585 100644 --- a/parser/page.go +++ b/parser/page.go @@ -17,7 +17,7 @@ const ( TOML_LEAD = "+" TOML_DELIM_UNIX = "+++\n" TOML_DELIM_DOS = "+++\r\n" - JAVA_LEAD = "{" + JSON_LEAD = "{" ) var ( @@ -26,7 +26,7 @@ var ( []byte(YAML_DELIM_DOS), []byte(TOML_DELIM_UNIX), []byte(TOML_DELIM_DOS), - []byte(JAVA_LEAD), + []byte(JSON_LEAD), } unixEnding = []byte("\n") @@ -161,7 +161,7 @@ func determineDelims(firstLine []byte) (left, right []byte) { case 2: fallthrough case 1: - return []byte(JAVA_LEAD), []byte("}") + return []byte(JSON_LEAD), []byte("}") default: panic(fmt.Sprintf("Unable to determine delims from %q", firstLine)) } |