]> Kevux Git Server - fll/commitdiff
Bugfix: Bad handling of comments due to not re-assigning line start and fix mispellin...
authorKevin Day <Kevin@kevux.org>
Thu, 5 Sep 2024 02:41:04 +0000 (21:41 -0500)
committerKevin Day <Kevin@kevux.org>
Thu, 5 Sep 2024 02:41:04 +0000 (21:41 -0500)
The `valud` should be `valid`.

13 files changed:
level_1/fl_fss/c/fss/embedded_list.c
level_1/fl_fss/c/private-fss-list.c
level_3/fss_read/tests/runtime/fss_0008/expect/test-0003-object_space-content-original.expect
level_3/fss_read/tests/runtime/fss_0008/expect/test-0003-object_space-content-select-0-original.expect
level_3/fss_read/tests/runtime/fss_0008/expect/test-0003-object_space-content-select-0.expect
level_3/fss_read/tests/runtime/fss_0008/expect/test-0003-object_space-content-trim.expect
level_3/fss_read/tests/runtime/fss_0008/expect/test-0003-object_space-content.expect
level_3/fss_read/tests/runtime/fss_0008/expect/test-0003-object_space-object_and_content-original.expect
level_3/fss_read/tests/runtime/fss_0008/expect/test-0003-object_space-object_and_content-select-0-original.expect
level_3/fss_read/tests/runtime/fss_0008/expect/test-0003-object_space-object_and_content-select-0.expect
level_3/fss_read/tests/runtime/fss_0008/expect/test-0003-object_space-object_and_content-trim.expect
level_3/fss_read/tests/runtime/fss_0008/expect/test-0003-object_space-object_and_content.expect
level_3/fss_read/tests/runtime/fss_0008/source/test-0003-object_space.fss

index e010e48773e6f366f41ad6ebd58acac3736d451e..41c324a0cc3dc4157aa092e7bfd910c4fdce28b1 100644 (file)
@@ -754,7 +754,7 @@ extern "C" {
           }
         }
       }
-      else if (graph_first == 0x1 && buffer.string[range->start] == f_fss_comment_s.string[0]) {
+      else if (buffer.string[range->start] == f_fss_comment_s.string[0] && (graph_first == 0x1 || graph_first == 0x2)) {
 
         // The newline_last is initialized to the range->start, which may not actually be a new line.
         position = (buffer.string[newline_last] == f_string_eol_s.string[0]) ? newline_last + 1 : newline_last;
@@ -800,6 +800,7 @@ extern "C" {
 
         comments->array[comments->used].start = position;
         comments->array[comments->used++].stop = range->start++;
+        line_start = range->start;
 
         continue;
       }
index 7b89330ad3e7ef3795a7c8de96e128bcd2f7d396..e66f3d5fe3d3cfc6f438561ac75504cac1e7eb3b 100644 (file)
@@ -216,10 +216,8 @@ extern "C" {
           }
         }
         else if (graph_first && buffer.string[range->start] == f_fss_comment_s.string[0]) {
-          if (graph_first) {
-            graph_first = F_false;
-            start = slash_first;
-          }
+          graph_first = F_false;
+          start = slash_first;
 
           // Comments may only have white space before the '#', therefore only the first slash needs to be delimited.
           state->status = f_memory_array_increase(state->step_small, sizeof(f_number_unsigned_t), (void **) &delimits->array, &delimits->used, &delimits->size);
index cc965daf37b92789c3389e2df9244472d3647a46..052213819abb54f70e1b576e81f8cc64e95c0593 100644 (file)
@@ -6,7 +6,7 @@
     inside {
     }
       with content.
-      \### Nested valud Object {
+      \### Nested valid Object {
         with nested content.
       }
       and outside.
index cc965daf37b92789c3389e2df9244472d3647a46..052213819abb54f70e1b576e81f8cc64e95c0593 100644 (file)
@@ -6,7 +6,7 @@
     inside {
     }
       with content.
-      \### Nested valud Object {
+      \### Nested valid Object {
         with nested content.
       }
       and outside.
index cc965daf37b92789c3389e2df9244472d3647a46..052213819abb54f70e1b576e81f8cc64e95c0593 100644 (file)
@@ -6,7 +6,7 @@
     inside {
     }
       with content.
-      \### Nested valud Object {
+      \### Nested valid Object {
         with nested content.
       }
       and outside.
index cc965daf37b92789c3389e2df9244472d3647a46..052213819abb54f70e1b576e81f8cc64e95c0593 100644 (file)
@@ -6,7 +6,7 @@
     inside {
     }
       with content.
-      \### Nested valud Object {
+      \### Nested valid Object {
         with nested content.
       }
       and outside.
index cc965daf37b92789c3389e2df9244472d3647a46..052213819abb54f70e1b576e81f8cc64e95c0593 100644 (file)
@@ -6,7 +6,7 @@
     inside {
     }
       with content.
-      \### Nested valud Object {
+      \### Nested valid Object {
         with nested content.
       }
       and outside.
index f4a40771e8f5e890dd93890ad4fe9306bd92535c..f28125f76b49e0b8c549f6cfd136f8b1e05e9bad 100644 (file)
@@ -13,7 +13,7 @@
           with content.
 }
     \# Valid Object {
-          \### Nested valud Object {
+          \### Nested valid Object {
         with nested content.
       }
       and outside.
index e6327d922294546c1904fa1d8b1bae544436b738..04fbb74528bf985ce483ca637704d988b3c92cd6 100644 (file)
@@ -13,7 +13,7 @@
       with content.
     }
     \# Valid Object {
-      \### Nested valud Object {
+      \### Nested valid Object {
         with nested content.
       }
       and outside.
index 3331b253410ac1fba3e2a0438ccdeabfb2b1b927..546e287e042ab9dfc4daf2db449b995004a88a71 100644 (file)
@@ -13,7 +13,7 @@
           with content.
 }
     # Valid Object{
-          \### Nested valud Object {
+          \### Nested valid Object {
         with nested content.
       }
       and outside.
index 3331b253410ac1fba3e2a0438ccdeabfb2b1b927..546e287e042ab9dfc4daf2db449b995004a88a71 100644 (file)
@@ -13,7 +13,7 @@
           with content.
 }
     # Valid Object{
-          \### Nested valud Object {
+          \### Nested valid Object {
         with nested content.
       }
       and outside.
index 3331b253410ac1fba3e2a0438ccdeabfb2b1b927..546e287e042ab9dfc4daf2db449b995004a88a71 100644 (file)
@@ -13,7 +13,7 @@
           with content.
 }
     # Valid Object{
-          \### Nested valud Object {
+          \### Nested valid Object {
         with nested content.
       }
       and outside.
index 4303032d4345f2be71b9a1cd58fe94b5accbac0c..195235e71ae36ec796268b24c01f72a617882d17 100644 (file)
@@ -16,7 +16,7 @@
     }
 
     \# Valid Object {
-      \### Nested valud Object {
+      \### Nested valid Object {
         with nested content.
       }
       and outside.