Lines Matching refs:aff
571 " create a .aff file but not the .dic file
572 call writefile([], 'Xtest.aff')
574 call delete('Xtest.aff')
587 call writefile([], 'Xtest.aff')
590 call delete('Xtest.aff')
596 " Tests for :mkspell with a .dic and .aff file
604 call writefile([], 'Xtest.aff')
610 " Invalid encoding in .aff file
611 call writefile(['# comment', 'SET Xinvalidencoding'], 'Xtest.aff')
613 call assert_match('Conversion in Xtest.aff not supported: from xinvalidencoding', output)
615 " Invalid flag in .aff file
616 call writefile(['FLAG xxx'], 'Xtest.aff')
618 call assert_match('Invalid value for FLAG in Xtest.aff line 1: xxx', output)
621 call writefile(['SFX L Y 1', 'SFX L 0 re [^x]', 'FLAG long'], 'Xtest.aff')
623 call assert_match('FLAG after using flags in Xtest.aff line 3: long', output)
630 \ 'Xrtp/spell/Xtest.aff')
649 \ 'Xtest.aff')
651 …call assert_match('Defining COMPOUNDFORBIDFLAG after PFX item may give wrong results in Xtest.aff …
655 \ 'Xtest.aff')
657 …call assert_match('Defining COMPOUNDPERMITFLAG after PFX item may give wrong results in Xtest.aff …
660 call writefile(['COMPOUNDRULES a'], 'Xtest.aff')
662 call assert_match('Wrong COMPOUNDRULES value in Xtest.aff line 1: a', output)
665 call writefile(['COMPOUNDWORDMAX 0'], 'Xtest.aff')
667 call assert_match('Wrong COMPOUNDWORDMAX value in Xtest.aff line 1: 0', output)
670 call writefile(['COMPOUNDMIN 0'], 'Xtest.aff')
672 call assert_match('Wrong COMPOUNDMIN value in Xtest.aff line 1: 0', output)
675 call writefile(['COMPOUNDSYLMAX 0'], 'Xtest.aff')
677 call assert_match('Wrong COMPOUNDSYLMAX value in Xtest.aff line 1: 0', output)
680 call writefile(['CHECKCOMPOUNDPATTERN 0'], 'Xtest.aff')
682 call assert_match('Wrong CHECKCOMPOUNDPATTERN value in Xtest.aff line 1: 0', output)
685 call writefile(['COMPOUNDFLAG c', 'NOBREAK'], 'Xtest.aff')
691 \ 'Xtest.aff')
693 call assert_match('Duplicate affix in Xtest.aff line 3: L', output)
696 call writefile(['PFX L Y 1', 'PFX L Y 1'], 'Xtest.aff')
698 call assert_match('Unrecognized or duplicate item in Xtest.aff line 2: PFX', output)
701 call writefile(['PFX L Y 1', 'PFX L 0 re x', 'PFX L N 1'], 'Xtest.aff')
703 call assert_match('Different combining flag in continued affix block in Xtest.aff line 3', output)
706 call writefile(['BAD x', 'PFX x Y 1', 'PFX x 0 re x'], 'Xtest.aff')
708 …x also used for BAD/RARE/KEEPCASE/NEEDAFFIX/NEEDCOMPOUND/NOSUGGEST in Xtest.aff line 2: x', output)
711 call writefile(['PFX L Y 1 Test', 'PFX L 0 re x'], 'Xtest.aff')
713 call assert_match('Trailing text in Xtest.aff line 1: Test', output)
716 call writefile(['PFX L Y 1', 'PFX L 0 re x Test'], 'Xtest.aff')
718 call assert_match('Trailing text in Xtest.aff line 2: Test', output)
721 call writefile(['PFX L X 1', 'PFX L 0 re x'], 'Xtest.aff')
723 call assert_match('Expected Y or N in Xtest.aff line 1: X', output)
726 call writefile(['REP a'], 'Xtest.aff')
728 call assert_match('Expected REP(SAL) count in Xtest.aff line 1', output)
731 call writefile(['REP 1', 'REP f ph test'], 'Xtest.aff')
733 call assert_match('Trailing text in Xtest.aff line 2: test', output)
736 call writefile(['MAP a'], 'Xtest.aff')
738 call assert_match('Expected MAP count in Xtest.aff line 1', output)
741 call writefile(['MAP 2', 'MAP xx', 'MAP yy'], 'Xtest.aff')
743 call assert_match('Duplicate character in MAP in Xtest.aff line 2', output)
746 call writefile(['COMPOUNDSYLMAX 2'], 'Xtest.aff')
751 call writefile(['SOFOFROM abcdef'], 'Xtest.aff')
753 call assert_match('Missing SOFOTO line in Xtest.aff', output)
756 call writefile(['SOFOFROM abcde', 'SOFOTO ABCD'], 'Xtest.aff')
760 call writefile(['SOFOFROM abcd', 'SOFOTO ABCD', 'SAL CIA X'], 'Xtest.aff')
762 call assert_match('Both SAL and SOFO lines in Xtest.aff', output)
765 call writefile(['FLAG num', 'SFX L Y 1', 'SFX L 0 re [^x]'], 'Xtest.aff')
767 call assert_match('Flag is not a number in Xtest.aff line 2: L', output)
770 call writefile(['FLAG num', 'SFX 4f Y 1', 'SFX 4f 0 re [^x]'], 'Xtest.aff')
772 call assert_match('Affix name too long in Xtest.aff line 2: 4f', output)
775 call writefile(['FLAG long', 'SFX L Y 1', 'SFX L 0 re [^x]'], 'Xtest.aff')
777 call assert_match('Illegal flag in Xtest.aff line 2: L', output)
781 call writefile(['FOL abc', 'LOW abc', 'UPP A'], 'Xtest.aff')
788 call writefile(["FOL \u0102bc", 'LOW abc', 'UPP ABC'], 'Xtest.aff')
795 call writefile(["FOL \u0102bc", "LOW \u0102bc", 'UPP ABC'], 'Xtest.aff')
802 call writefile(["FOL ab", "LOW abc", 'UPP ABC'], 'Xtest.aff')
809 call writefile(["FOL abc", "LOW abc"], 'Xtest.aff')
813 call assert_match('Missing FOL/LOW/UPP line in Xtest.aff', output)
818 call writefile(['NAME vim'], 'Xtest.aff')
823 " use multiple .aff files with different values for COMPOUNDWORDMAX and
827 call writefile(["COMPOUNDWORDMAX 3", "MIDWORD '-"], 'Xtest_US.aff')
828 call writefile(["COMPOUNDWORDMAX 4", "MIDWORD '="], 'Xtest_CA.aff')
830 call assert_match('COMPOUNDWORDMAX value differs from what is used in another .aff file', output)
831 call assert_match('MIDWORD value differs from what is used in another .aff file', output)
834 call delete('Xtest_US.aff')
835 call delete('Xtest_CA.aff')
838 call delete('Xtest.aff')
859 call writefile([], 'XtestVerbose.aff')
873 call delete('XtestVerbose.aff')
880 call writefile(['NOBREAK' ], 'XtestNOBREAK.aff')
903 call delete('XtestNOBREAK.aff')
917 \ 'COMPOUNDFLAG c'], 'XtestCHECKCOMPOUNDPATTERN.aff')
932 " 'four' does not have the 'c' flag in *.aff file so no compound.
942 call delete('XtestCHECKCOMPOUNDPATTERN.aff')
956 call writefile(['COMPOUNDFLAG c'], 'XtestNOCOMPOUNDSUGS.aff')
959 \ 'COMPOUNDFLAG c'], 'XtestNOCOMPOUNDSUGS.aff')
988 call delete('XtestNOCOMPOUNDSUGS.aff')
1002 call writefile(['COMMON the and'], 'XtestCOMMON.aff')
1015 call delete('XtestCOMMON.aff')
1022 call writefile(['NOSUGGEST X'], 'XtestNOSUGGEST.aff')
1041 call delete('XtestNOSUGGEST.aff')
1065 \ 'SFX C 0 obb/BX . is:SUPERSUPERLATIVE'], 'XtestCIRCUMFIX.aff')
1085 call delete('XtestCIRCUMFIX.aff')
1097 \ 'XtestSFX.aff')
1127 call delete('XtestSFX.aff')