summary refs log tree commit diff stats
path: root/lib/packages
Commit message (Expand)AuthorAgeFilesLines
* Add possibility to get language class to listings (#6705)Silvio2017-11-081-2/+2
* fixes #6609; 'if' expressions support multiple statements; minor breaking changeAraq2017-11-051-1/+2
* 'with' and 'without' are not keywords anymoreAraq2017-09-301-2/+2
* Remove expr/stmt (#5857)Arne Döring2017-07-251-2/+2
* attempt to make travis OSX tests green and mandatoryAndreas Rumpf2017-03-291-0/+229
* Make countLines() the same as len(splitLines(s)) (#5470)Simon Krauter2017-03-031-1/+1
* fixes #3078Andreas Rumpf2016-10-201-6/+9
* docgen: working search featureAraq2016-09-091-3/+3
* generated theindex.html is valid htmlAraq2016-09-091-10/+21
* prepare Nim codebase for upcoming parser changesAndreas Rumpf2016-07-151-1/+1
* fixes #2640Andreas Rumpf2016-05-311-4/+9
* Fixes to YAML highlighting support, added testsFelix Krause2016-04-011-7/+18
* Added YAML support to doctools/highliteFelix Krause2016-03-291-2/+296
* use 'using' instead of 'sig' keyword; cleans up new features a bitAndreas Rumpf2016-02-291-1/+1
* added 'sig' feature; removed tfShared support in the compilerAndreas Rumpf2016-02-281-1/+1
* Merge pull request #3831 from ephja/nimrod-to-nimAndreas Rumpf2016-02-062-9/+9
|\
| * nimrod -> nimErik Johansson Andersson2016-02-052-9/+9
* | RST: Output <object> for SVG images in HTMLFelix Krause2016-02-021-7/+17
|/
* implements final version of multiline commentsAndreas Rumpf2016-01-171-11/+30
* implements multi-line-comments; pounds are stripped from the doc commentsAndreas Rumpf2016-01-161-1/+16
* Made docgen emit valid XML by defaultFelix Krause2016-01-111-2/+2
* udpated the compiler and tester to use getOrDefaultAraq2015-10-131-10/+13
* Fix for image directive with periodssingularperturbation2015-08-021-1/+1
* documentation generator emits configurable html for code listingsAraq2015-07-141-6/+14
* renamed writeln to writeLine in libpatrick dw2015-06-191-1/+1
* lib/packages/docutils - Dropped 'T' from typespdw2015-06-044-235/+253
* Turn some test outputs into actual testsOleh Prypin2015-04-211-3/+4
* Don't run non-test code when defined(testing)Oleh Prypin2015-04-211-1/+1
* Merge branch 'devel' of https://github.com/Araq/Nim into develAraq2015-04-201-1/+1
|\
| * Make RST recognize hyperlinks with two underscoresOleh Prypin2015-04-131-1/+1
* | fixes #2476Araq2015-04-191-132/+132
|/
* docutils are gcsafeAraq2015-04-042-497/+498
* breaking change: 'concept' is now a keyword and used instead of 'generic'Araq2015-03-231-222/+224
* rstgen: Unique reference names in TOCdef2015-03-131-1/+8
* Replaced deprecated repeatStr() with repeat().Hans Raaf2015-03-041-2/+2
* Replaced deprecated repeatChar() with repeat() or spaces().Hans Raaf2015-03-043-8/+8
* Fix typosFederico Ceratto2015-02-151-1/+1
* Replace other common expressions with defined variableDustin Lacewell2015-01-121-2/+2
* Add named anchor links to procs in the documentation indexDustin Lacewell2015-01-121-2/+4
* Improved nimdoc styling.Nick Greenfield2014-12-191-2/+2
* destuctors are experimental; 'func' is now a keywordAraq2014-12-101-1/+2
* Merge branch 'devel' of https://github.com/Araq/Nimrod into develAraq2014-12-081-5/+3
|\
| * Moved smiliey format to config hash table.Dominik Picheta2014-12-041-5/+3
* | implements 'defer'Araq2014-12-041-2/+3
|/
* smileys configurable; safer image attribute handlingAraq2014-11-292-21/+27
* fixes #1055Araq2014-11-161-4/+4
* Merge branch 'pr_adds_code_directive_to_rst' into pr_bigbreak_adds_code_direc...Grzegorz Adam Hankiewicz2014-11-032-25/+178
|\
| * Fixes line numbering.Grzegorz Adam Hankiewicz2014-10-021-1/+1
| * Handles :file: option for code blocks to avoid warnings.Grzegorz Adam Hankiewicz2014-07-262-0/+11
| * Adds support for the ``.. code::`` rst directive.Grzegorz Adam Hankiewicz2014-07-192-25/+167
lass="n">wExportc, wIncompleteStruct, wRequiresInit, wAlign, wNodecl, wPure, wSideeffect, wHeader, wNosideeffect, wGcSafe, wNoreturn, wMerge, wLib, wDynlib, wCompilerproc, wProcVar, wFatal, wError, wWarning, wHint, wLine, wPush, wPop, wDefine, wUndef, wLinedir, wStacktrace, wLinetrace, wLink, wCompile, wLinksys, wDeprecated, wVarargs, wCallconv, wBreakpoint, wDebugger, wNimcall, wStdcall, wCdecl, wSafecall, wSyscall, wInline, wNoInline, wFastcall, wClosure, wNoconv, wOn, wOff, wChecks, wRangechecks, wBoundchecks, wOverflowchecks, wNilchecks, wFloatchecks, wNanChecks, wInfChecks, wAssertions, wPatterns, wWarnings, wHints, wOptimization, wRaises, wWrites, wReads, wSize, wEffects, wTags, wDeadCodeElim, wSafecode, wNoForward, wPragma, wCompileTime, wNoInit, wPassc, wPassl, wBorrow, wDiscardable, wFieldChecks, wWatchPoint, wSubsChar, wAcyclic, wShallow, wUnroll, wLinearScanEnd, wComputedGoto, wInjectStmt, wWrite, wGensym, wInject, wDirty, wInheritable, wThreadVar, wEmit, wAsmNoStackFrame, wImplicitStatic, wGlobal, wCodegenDecl, wUnchecked, wGuard, wUses, wAuto, wBool, wCatch, wChar, wClass, wConst_cast, wDefault, wDelete, wDouble, wDynamic_cast, wExplicit, wExtern, wFalse, wFloat, wFriend, wGoto, wInt, wLong, wMutable, wNamespace, wNew, wOperator, wPrivate, wProtected, wPublic, wRegister, wReinterpret_cast, wShort, wSigned, wSizeof, wStatic_cast, wStruct, wSwitch, wThis, wThrow, wTrue, wTypedef, wTypeid, wTypename, wUnion, wPacked, wUnsigned, wVirtual, wVoid, wVolatile, wWchar_t, wAlignas, wAlignof, wConstexpr, wDecltype, wNullptr, wNoexcept, wThread_local, wStatic_assert, wChar16_t, wChar32_t, wStdIn, wStdOut, wStdErr, wInOut, wByCopy, wByRef, wOneWay, TSpecialWords* = set[TSpecialWord] const oprLow* = ord(wColon) oprHigh* = ord(wDotDot) nimKeywordsLow* = ord(wAsm) nimKeywordsHigh* = ord(wYield) ccgKeywordsLow* = ord(wAuto) ccgKeywordsHigh* = ord(wOneWay) cppNimSharedKeywords* = { wAsm, wBreak, wCase, wConst, wContinue, wDo, wElse, wEnum, wExport, wFor, wIf, wReturn, wStatic, wTemplate, wTry, wWhile, wUsing} specialWords*: array[low(TSpecialWord)..high(TSpecialWord), string] = ["", "addr", "and", "as", "asm", "atomic", "bind", "block", "break", "case", "cast", "const", "continue", "converter", "discard", "distinct", "div", "do", "elif", "else", "end", "enum", "except", "export", "finally", "for", "from", "generic", "if", "import", "in", "include", "interface", "is", "isnot", "iterator", "lambda", "let", "macro", "method", "mixin", "mod", "nil", "not", "notin", "object", "of", "or", "out", "proc", "ptr", "raise", "ref", "return", "shl", "shr", "static", "template", "try", "tuple", "type", "using", "var", "when", "while", "with", "without", "xor", "yield", ":", "::", "=", ".", "..", "*", "-", "magic", "thread", "final", "profiler", "objchecks", "destroy", "immediate", "destructor", "delegator", "importcpp", "importobjc", "importcompilerproc", "importc", "exportc", "incompletestruct", "requiresinit", "align", "nodecl", "pure", "sideeffect", "header", "nosideeffect", "gcsafe", "noreturn", "merge", "lib", "dynlib", "compilerproc", "procvar", "fatal", "error", "warning", "hint", "line", "push", "pop", "define", "undef", "linedir", "stacktrace", "linetrace", "link", "compile", "linksys", "deprecated", "varargs", "callconv", "breakpoint", "debugger", "nimcall", "stdcall", "cdecl", "safecall", "syscall", "inline", "noinline", "fastcall", "closure", "noconv", "on", "off", "checks", "rangechecks", "boundchecks", "overflowchecks", "nilchecks", "floatchecks", "nanchecks", "infchecks", "assertions", "patterns", "warnings", "hints", "optimization", "raises", "writes", "reads", "size", "effects", "tags", "deadcodeelim", "safecode", "noforward", "pragma", "compiletime", "noinit", "passc", "passl", "borrow", "discardable", "fieldchecks", "watchpoint", "subschar", "acyclic", "shallow", "unroll", "linearscanend", "computedgoto", "injectstmt", "write", "gensym", "inject", "dirty", "inheritable", "threadvar", "emit", "asmnostackframe", "implicitstatic", "global", "codegendecl", "unchecked", "guard", "uses", "auto", "bool", "catch", "char", "class", "const_cast", "default", "delete", "double", "dynamic_cast", "explicit", "extern", "false", "float", "friend", "goto", "int", "long", "mutable", "namespace", "new", "operator", "private", "protected", "public", "register", "reinterpret_cast", "short", "signed", "sizeof", "static_cast", "struct", "switch", "this", "throw", "true", "typedef", "typeid", "typename", "union", "packed", "unsigned", "virtual", "void", "volatile", "wchar_t", "alignas", "alignof", "constexpr", "decltype", "nullptr", "noexcept", "thread_local", "static_assert", "char16_t", "char32_t", "stdin", "stdout", "stderr", "inout", "bycopy", "byref", "oneway", ] proc findStr*(a: openArray[string], s: string): int = for i in countup(low(a), high(a)): if cmpIgnoreStyle(a[i], s) == 0: return i result = - 1 proc whichKeyword*(id: PIdent): TSpecialWord = if id.id < 0: result = wInvalid else: result = TSpecialWord(id.id) proc whichKeyword*(id: string): TSpecialWord = result = whichKeyword(getIdent(id)) proc initSpecials() = # initialize the keywords: for s in countup(succ(low(specialWords)), high(specialWords)): getIdent(specialWords[s], hashIgnoreStyle(specialWords[s])).id = ord(s) initSpecials()