vim-pandoc / vim-pandoc-syntax

pandoc markdown syntax, to be installed alongside vim-pandoc
MIT License
426 stars 61 forks source link

Letters missing from CiteKey pattern #244

Open jalvesaq opened 6 years ago

jalvesaq commented 6 years ago

I noted that the letters "çâêôãõñ" are missing from pandocPCite, pandocICite, and pandocCiteKey. The letter "ñ" is used in Spanish and the others in Portuguese. And, after looking at the Latin-1 table, I realized that the accented letters might be replaced with the ranges: "à-öø-ÿÀ-ÖØ-ß". All the letters are at the same relative positions in the Unicode table, and we need two ranges for lower case letters and two for uppercase ones to skip both the divide (÷) and the times symbols (×).

Thanks for your work! I adapted part of the code of syntax/pandoc.vim to syntax/rmd.vim to benefit people who did not install vim-pandoc-syntax.