Fix user guide and generated parser comments for position row and col to be 1-based
This commit is contained in:
1 parent
cb914e8bb0
commit
c28aebddb4
3 files changed
+6
-6
No files matched your search
+2
-2
@@ -59,10 +59,10 @@ public alias <%= @grammar.prefix %>code_point_t = uint;
|
||||
*/
|
||||
public struct <%= @grammar.prefix %>position_t
|
||||
{
|
||||
/** Input text row (0-based). */
|
||||
/** Input text row (1-based). */
|
||||
uint row;
|
||||
|
||||
/** Input text column (0-based). */
|
||||
/** Input text column (1-based). */
|
||||
uint col;
|
||||
|
||||
/** Invalid position value. */
|
||||
|
||||
+2
-2
@@ -45,10 +45,10 @@ typedef uint32_t <%= @grammar.prefix %>code_point_t;
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
/** Input text row (0-based). */
|
||||
/** Input text row (1-based). */
|
||||
uint32_t row;
|
||||
|
||||
/** Input text column (0-based). */
|
||||
/** Input text column (1-based). */
|
||||
uint32_t col;
|
||||
} <%= @grammar.prefix %>position_t;
|
||||
|
||||
|
||||
Reference in new issue
Block a user