@@ -3897,15 +3897,22 @@ toRecordReport source context record startRow startCol =
3897 surroundings = A.Region (A.Position startRow startCol) (A.Position row col)
3897 surroundings = A.Region (A.Position startRow startCol) (A.Position row col)
3898 region = toRegion row col
3898 region = toRegion row col
3900− Report.Report "UNFINISHED RECORD" region [] $
3900+ Report.Report "PROBLEM IN RECORD" region [] $
3901 Code.toSnippet source surroundings (Just region)
3901 Code.toSnippet source surroundings (Just region)
3903 D.reflow $
3903 D.reflow $
3904 "I just started parsing a record, but I got stuck here:"
3904 "I just started parsing a record, but I got stuck here:"
3906− D.fillSep
3907+ [ D.fillSep
3907− ["Records","look","like",D.dullyellow "{ x = 3, y = 4 },"
3908− ,"so","I","was","expecting","to","see","a","field","name","next."
3908+ ["I","was","expecting","to","see","a","record","field","defined","next,"
3909+ ,"so","I","am","looking","for","a","name","like"
3910+ ,D.dullyellow "userName","or",D.dullyellow "plantHeight" <> "."
3913+ "Field names must start with a lower-case letter. After that, you can use\
3914+ \ any sequence of letters, numbers, and underscores."
3915+ , noteForRecordError
@@ -3914,7 +3921,7 @@ toRecordReport source context record startRow startCol =
3914 surroundings = A.Region (A.Position startRow startCol) (A.Position row col)
3921 surroundings = A.Region (A.Position startRow startCol) (A.Position row col)
3915 region = toRegion row col
3922 region = toRegion row col
3917− Report.Report "UNFINISHED RECORD" region [] $
3924+ Report.Report "PROBLEM IN RECORD" region [] $
3918 Code.toSnippet source surroundings (Just region)
3925 Code.toSnippet source surroundings (Just region)
3920 D.reflow $
3927 D.reflow $
@@ -4002,9 +4009,12 @@ toRecordReport source context record startRow startCol =
4003 [ D.fillSep
4010 [ D.fillSep
4004 ["I","was","expecting","to","see","another","record","field","defined","next,"
4011 ["I","was","expecting","to","see","another","record","field","defined","next,"
4005− ,"so","I","am","looking","for","a","lower-case","name","like"
4012+ ,"so","I","am","looking","for","a","name","like"
4006 ,D.dullyellow "userName","or",D.dullyellow "plantHeight" <> "."
4013 ,D.dullyellow "userName","or",D.dullyellow "plantHeight" <> "."
4016+ "Field names must start with a lower-case letter. After that, you can use\
4017+ \ any sequence of letters, numbers, and underscores."
4008 , noteForRecordError
4018 , noteForRecordError
@@ -4014,7 +4024,7 @@ toRecordReport source context record startRow startCol =
4014 surroundings = A.Region (A.Position startRow startCol) (A.Position row col)
4024 surroundings = A.Region (A.Position startRow startCol) (A.Position row col)
4015 region = toRegion row col
4025 region = toRegion row col
4017− Report.Report "UNFINISHED RECORD" region [] $
4027+ Report.Report "PROBLEM IN RECORD" region [] $
4018 Code.toSnippet source surroundings (Just region)
4028 Code.toSnippet source surroundings (Just region)
4020 D.reflow $
4030 D.reflow $
@@ -5428,7 +5438,7 @@ toTRecordReport source context record startRow startCol =
5429 [ D.fillSep
5439 [ D.fillSep
5430 ["I","was","expecting","to","see","another","record","field","defined","next,"
5440 ["I","was","expecting","to","see","another","record","field","defined","next,"
5431− ,"so","I","am","looking","for","a","lower-case","name","like"
5441+ ,"so","I","am","looking","for","a","name","like"
5432 ,D.dullyellow "userName","or",D.dullyellow "plantHeight" <> "."
5442 ,D.dullyellow "userName","or",D.dullyellow "plantHeight" <> "."
5434 , noteForRecordTypeError
5444 , noteForRecordTypeError