fixing spaces vs. tabs issue

This commit is contained in:
Nate Stemen 2017-08-14 18:02:51 +01:00
parent 688f1e9e75
commit 6e9b1c602b
2 changed files with 74 additions and 70 deletions

View file

@ -112,10 +112,12 @@ define [
else else
callback null, result callback null, result
@editor.completers = [@suggestionManager, @editor.completers = [
@suggestionManager,
SnippetCompleter, SnippetCompleter,
ReferencesCompleter, ReferencesCompleter,
LabelsCompleter] LabelsCompleter
]
disable: () -> disable: () ->
@editor.setOptions({ @editor.setOptions({

View file

@ -4,7 +4,7 @@ define () ->
'maketitle', 'newpage', 'verb', 'bibliography', 'fi', 'hfill', 'par', 'maketitle', 'newpage', 'verb', 'bibliography', 'fi', 'hfill', 'par',
'in', 'sum', 'cdot', 'alpha', 'ldots', 'else', 'linewidth', 'left', 'in', 'sum', 'cdot', 'alpha', 'ldots', 'else', 'linewidth', 'left',
'right', 'today', 'clearpage', 'newline', 'endinput', 'mu', 'right', 'today', 'clearpage', 'newline', 'endinput', 'mu',
'tableofcontents', 'vfill', 'bigskip', 'fill', 'cleardoublepage', 'tableofcontents', 'vfill', 'bigskip', 'fill', 'cleardoublepage'
] ]
singleArgumentCommands = [ singleArgumentCommands = [
'chapter', 'usepackage', 'section', 'label', 'textbf', 'subsection', 'chapter', 'usepackage', 'section', 'label', 'textbf', 'subsection',
@ -14,10 +14,10 @@ define () ->
'footnote', 'small', 'thanks', 'underline', 'graphicspath', 'pageref', 'footnote', 'small', 'thanks', 'underline', 'graphicspath', 'pageref',
'section*', 'subsection*', 'subsubsection*', 'sqrt', 'text', 'section*', 'subsection*', 'subsubsection*', 'sqrt', 'text',
'normalsize', 'Large', 'paragraph', 'pagestyle', 'thispagestyle', 'normalsize', 'Large', 'paragraph', 'pagestyle', 'thispagestyle',
'bibliographystyle', 'bibliographystyle'
] ]
doubleArgumentCommands = [ doubleArgumentCommands = [
'newcommand', 'frac', 'renewcommand', 'setlength', 'href', 'newtheorem', 'newcommand', 'frac', 'renewcommand', 'setlength', 'href', 'newtheorem'
] ]
tripleArgumentCommands = [ tripleArgumentCommands = [
'addcontentsline', 'newacronym', 'multicolumn' 'addcontentsline', 'newacronym', 'multicolumn'
@ -62,11 +62,13 @@ define () ->
meta: "cmd" meta: "cmd"
} }
staticCommands = [].concat(noArgumentCommands, staticCommands = [].concat(
noArgumentCommands,
singleArgumentCommands, singleArgumentCommands,
doubleArgumentCommands, doubleArgumentCommands,
tripleArgumentCommands, tripleArgumentCommands,
special) special
)
environments = [ environments = [
"abstract", "abstract",