Skip to content

Commit f42c691

Browse files
authored
Merge pull request #500 from lucdw/master
line continuation after any lavaan operator in lav_syntax_parser
2 parents 3d51d0f + eb0fa37 commit f42c691

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/lav_syntax_parser.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ lav_parse_text_tokens <- function(modelsrc, types) {
303303
if (elem.type[i] == types$identifier && elem.text[i] == "efa") {
304304
frm.hasefa <- TRUE
305305
}
306-
if (any(elem.text[i] == c("+", "*", "=~", "-"))) {
306+
if (any(elem.text[i] ==
307+
c("+", "*", "=~", "-", "<~", "~*~", "~~", "~", "|~", "|", "%"))) {
307308
if (frm.incremented) {
308309
frm.number <- frm.number - 1L
309310
elem.formula.number[i] <- frm.number

0 commit comments

Comments
 (0)