Skip to main content
Code Review

Return to Answer

Commonmark migration
Source Link

#Bugs#

Bugs

Here are three examples that will cause problems with your state machine:

'\\'
"\\"
/* comment **/

In the first two examples, your state machine doesn't recognize the end quotes because of the preceding backslash characters, even though the backslashes were already "consumed" by the other backslashes.

In the third example, the state machine fails to recognize the end of comment. The problem is that the double star should cause the state to remain in the STAR state but it instead reverts to the MULTI_COMMENT state.

#Bugs#

Here are three examples that will cause problems with your state machine:

'\\'
"\\"
/* comment **/

In the first two examples, your state machine doesn't recognize the end quotes because of the preceding backslash characters, even though the backslashes were already "consumed" by the other backslashes.

In the third example, the state machine fails to recognize the end of comment. The problem is that the double star should cause the state to remain in the STAR state but it instead reverts to the MULTI_COMMENT state.

Bugs

Here are three examples that will cause problems with your state machine:

'\\'
"\\"
/* comment **/

In the first two examples, your state machine doesn't recognize the end quotes because of the preceding backslash characters, even though the backslashes were already "consumed" by the other backslashes.

In the third example, the state machine fails to recognize the end of comment. The problem is that the double star should cause the state to remain in the STAR state but it instead reverts to the MULTI_COMMENT state.

Source Link
JS1
  • 28.9k
  • 3
  • 41
  • 83

#Bugs#

Here are three examples that will cause problems with your state machine:

'\\'
"\\"
/* comment **/

In the first two examples, your state machine doesn't recognize the end quotes because of the preceding backslash characters, even though the backslashes were already "consumed" by the other backslashes.

In the third example, the state machine fails to recognize the end of comment. The problem is that the double star should cause the state to remain in the STAR state but it instead reverts to the MULTI_COMMENT state.

lang-c

AltStyle によって変換されたページ (->オリジナル) /