Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve detection of C block comments
Illegalized `/*` in a bunch of languages and added some new phrasal words to comments. This was prompted by a real example in https://meta.discourse.org/t/code-fences-dont-seem-to-deal-with-c-comments/33339 which is now stored as a detection test for C++ in test/detect/cpp/comments.txt. Fixes #937.
- Loading branch information
Showing
10 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
To use this program, compile it -- if you can -- and then type something like: | ||
|
||
chan -n 5000 -d 2 < input.txt | ||
|
||
In this case, it will produce 5000 words of output, checking two-word groups. | ||
(The explanation above describes two-word generation. If you type "-d 3", | ||
the program will find three-word groups, and so on. Greater depths make more | ||
sense, but they require more input text and take more time to process.) | ||
|
||
http://www.eblong.com/zarf/markov/ | ||
*/ | ||
|
||
|
||
/* make cpp win deterministically over others with C block comments */ | ||
cout << endl; |