comparison src/scriptfile.c @ 18080:a6d218f99ff7 v8.1.2035

patch 8.1.2035: recognizing octal numbers is confusing Commit: https://github.com/vim/vim/commit/60a8de28d11595f4df0419ece8afa7d6accc9fbd Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 15 14:33:22 2019 +0200 patch 8.1.2035: recognizing octal numbers is confusing Problem: Recognizing octal numbers is confusing. Solution: Introduce scriptversion 4: do not use octal and allow for single quote inside numbers.
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 Sep 2019 14:45:04 +0200
parents 8f4cc259ed7a
children 6c3a8312486d
comparison
equal deleted inserted replaced
18079:c4ca2f98e7b4 18080:a6d218f99ff7
1657 } 1657 }
1658 1658
1659 nr = getdigits(&eap->arg); 1659 nr = getdigits(&eap->arg);
1660 if (nr == 0 || *eap->arg != NUL) 1660 if (nr == 0 || *eap->arg != NUL)
1661 emsg(_(e_invarg)); 1661 emsg(_(e_invarg));
1662 else if (nr > 3) 1662 else if (nr > 4)
1663 semsg(_("E999: scriptversion not supported: %d"), nr); 1663 semsg(_("E999: scriptversion not supported: %d"), nr);
1664 else 1664 else
1665 current_sctx.sc_version = nr; 1665 current_sctx.sc_version = nr;
1666 #endif 1666 #endif
1667 } 1667 }