Files
openide/python/testData/grazie/StringLiterals.py
Pavel Bakhvalov 105415f0c0 [Grazie] Migration to LanguageTool 5.5
IJ-MR-14886

GitOrigin-RevId: 5a79f2eb654448f9c9e3ab780a9cd8afe37608cb
2021-10-04 19:28:54 +00:00

19 lines
1.2 KiB
Python

# TODO add f-Strings support
oneTypo = "It is <warning descr="EN_A_VS_AN">an</warning> friend of human"
oneSpellcheckTypo = "It is <TYPO descr="Typo: In word 'frend'">frend</TYPO> of human"
fewTypos = "It <warning descr="IT_VBZ">are</warning> working for <warning descr="MUCH_COUNTABLE">much</warning> warnings"
ignoreTemplate = "It is {} friend" % fewTypos
notIgnoreOtherMistakes = "It <warning descr="IT_VBZ">are</warning> friend. But I have a {1} here"
oneTypo = 'It is <warning descr="EN_A_VS_AN">an</warning> friend of human'
oneSpellcheckTypo = 'It is <TYPO descr="Typo: In word 'frend'">frend</TYPO> of human'
fewTypos = 'It <warning descr="IT_VBZ">are</warning> working for <warning descr="MUCH_COUNTABLE">much</warning> warnings'
ignoreTemplate = 'It is {} friend' % fewTypos
notIgnoreOtherMistakes = 'It <warning descr="IT_VBZ">are</warning> friend. But I have a {1} here'
print('It is <warning descr="EN_A_VS_AN">an</warning> friend of human')
print('It is <TYPO descr="Typo: In word 'frend'">frend</TYPO> of human')
print('It <warning descr="IT_VBZ">are</warning> working for <warning descr="MUCH_COUNTABLE">much</warning> warnings')
print('It is {} friend' % fewTypos)
print('It <warning descr="IT_VBZ">are</warning> friend. But I have a {1} here')