File indexing completed on 2024-05-19 04:00:10
0001 var katescript = { 0002 "name": "Replicode", 0003 "author": "Martin Sandsmark <martin.sandsmark@kde.org>", 0004 "license": "BSD", 0005 "revision": 2, 0006 "kate-version": "5.1", 0007 "indent-languages": ["Replicode"] 0008 }; // kate-script-header, must be at the start of the file without comments, pure json 0009 0010 function indent(line, indentWidth, ch) 0011 { 0012 var lastLevel = document.firstColumn(line-1); 0013 0014 if (lastLevel != -1 && document.endsWith(line-1, "[]", true)) { 0015 return lastLevel + 3; 0016 } else { 0017 return -1; 0018 } 0019 }