mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 22:29:01 +02:00
Merge pull request #28245 from overleaf/mj-word-count-client-fix
[web] Fix node skipping while waiting for magic comment GitOrigin-RevId: 8203e7d0779e660d5f6e568b78b0df6d18bfaf58
This commit is contained in:
committed by
Copybot
parent
b50da23bb1
commit
ce93941cf2
@@ -303,7 +303,7 @@ export const countWordsInFile = (
|
||||
to: preambleExtent.to,
|
||||
enter(nodeRef: SyntaxNodeRef) {
|
||||
if (state.skipping && !nodeRef.type.is('Comment')) {
|
||||
return false
|
||||
return
|
||||
}
|
||||
return headMatcher(nodeRef.type)?.(nodeRef)
|
||||
},
|
||||
@@ -313,7 +313,7 @@ export const countWordsInFile = (
|
||||
from: preambleExtent.to,
|
||||
enter(nodeRef: SyntaxNodeRef) {
|
||||
if (state.skipping && !nodeRef.type.is('Comment')) {
|
||||
return false
|
||||
return
|
||||
}
|
||||
return bodyMatcher(nodeRef.type)?.(nodeRef)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user