summary refs log tree commit diff stats
path: root/lib/packages
Commit message (Collapse)AuthorAgeFilesLines
* Remove name attribute from docutils.nimble (#13239)hlaaftana2020-01-231-1/+0
|
* Rst parser respect `:start-after:` and `:end-before:` in `include` directive ↵Kamanji2020-01-051-10/+39
| | | | | | | | | | | | | (#12972) * [FEATURE] rst parser respect :start-after: in include Rst parser now respects `:start-after:` and `:end-before:` attributes for `include` directive. * [DOC] include directive parsing proc update * [TEST] Added unit tests for include rst directive in `rst` module
* fix several typos in documentation and comments (#12553)Nindaleth2019-10-302-2/+2
|
* Fix word wrappingJjp1372019-10-221-7/+11
|
* Fix many broken linksJjp1372019-10-221-7/+7
| | | | | | Note that contrary to what docgen.rst currently says, the ids have to match exactly or else most web browsers will not jump to the intended symbol.
* use system.move instead of system.shallowCopy if the GC mode requires itAndreas Rumpf2019-10-041-5/+8
|
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-2/+2
|
* there is only one style -- my styleAraq2019-07-101-16/+16
|
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-2/+2
| | | | --styleCheck:error
* Documentation highlite (#11596)Juan Carlos2019-06-261-0/+27
| | | | | | * Add Documentation with examples for highlite * Add Documentation with examples for highlite
* rst: parse brackets individually, fixes #10475 (#10997)Miran2019-04-101-6/+17
|
* fixes a critical GC safety inference bug (#10615)Andreas Rumpf2019-03-051-2/+2
| | | | | | * fixes a critical GC safety inference bug * make nimsuggest compile again * make Nimble compile again
* StringStream and parseJson, parseCfg, parseSql et al for the vm (#10746)Arne Döring2019-02-281-9/+8
|
* document proper imports, fixes #8164 (#10698)Miran2019-02-194-0/+8
|
* fixes #10602Araq2019-02-081-2/+2
|
* RST parser: fixes #8158Araq2019-01-111-3/+3
|
* docgen: support markdown headings tooAraq2019-01-111-8/+31
|
* docgen: support markdown link syntax; enable markdown extensionsAraq2019-01-112-0/+31
|
* docgen: render 'interpreted text' the same as inline literals for markdown ↵Araq2019-01-111-3/+1
| | | | compat
* Moves fsmonitor into graveyard. Fixes #6718. (#9529)Dominik Picheta2018-10-281-229/+0
|
* stdlib: documenation updates, the exception names have been changedAndreas Rumpf2018-10-251-1/+1
|
* Don't prevent ',' from getting escaped in theindex.htmlKaushal Modi2018-09-281-3/+7
| | | | | | - Enable escaping of links in theindex.html - Fixes https://github.com/nim-lang/Nim/issues/9107. - Second part of the fix for https://github.com/nim-lang/Nim/issues/9097.
* name mangling: also special case the backslash characterAraq2018-09-171-0/+1
|
* fixes #7500Araq2018-09-171-2/+26
|
* nim doc: simplifiy index generationAraq2018-09-131-7/+10
|
* index generation for docgen knows about subdirectories; index knows about ↵Araq2018-09-131-35/+45
| | | | enum values; fixes import statement for runnableExamples
* make highlite.nim compile againAraq2018-08-231-1/+1
|
* even more strict isNil handling for strings/seqs in order to detect bugsAraq2018-08-222-17/+11
|
* WIP: disallow 'nil' for strings and seqsAndreas Rumpf2018-08-132-7/+6
|
* fixes more nil string bugsAraq2018-08-081-4/+3
|
* Better doc search (#8260)Ray Imber2018-07-201-4/+8
| | | | | | | | | | | | | | | | | | * Modified the doc generation to produce a custom data attribute to allow for better search functionality * Implemented fuzzy matching for the Nim Doc search instead of the simple regex match. * Fix to the WordBoundry state transition from code review with @Varriount. Also removed silly testing template that is no longer used. * Update fuzzysearch.nim * Update fuzzysearch.nim * Update fuzzysearch.nim * Update dochack.nim * Update dochack.nim
* RST hotfix: don't crash in rstnodeToRefnameAraq2018-06-141-0/+1
|
* fixex merge conflictsAraq2018-06-081-1/+1
|\
| * Multi byte characters should not be treated as part of an operatorOscar Nihlgård2018-06-031-1/+1
| |
* | removed global variable from rstgen.nimAndreas Rumpf2018-05-271-5/+8
|/
* Use new binarySearch everywhere (#7876)Dmitry Atamanov2018-05-251-24/+3
|
* Rstgen/xml tree fixes (#7823)Dominik Picheta2018-05-231-29/+34
| | | | | | | | | | | | | * Don't prefix lang names with "lang" in rstgen. * Implements ability to render xmltree w/o \n. Fixes <> for `data-*` attrs. * Various rstgen fixes. * Fixes security vulnerabilities due to not escaping some code. * Adds <video> support and improve `.. image:: ` directive. * Adds comment as requested.
* docgen compiles againAndreas Rumpf2018-05-111-2/+2
|
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-052-7/+0
|
* RST package: don't use obsolete toLower procAndreas Rumpf2018-04-291-1/+1
|
* docutils: no Babel fileAndreas Rumpf2018-04-152-6/+5
|
* docutils: make ':test:' work without argumentAndreas Rumpf2018-04-151-3/+6
|
* the documentation generator now supports ':test:' for the testing of test ↵Araq2017-11-283-24/+22
| | | | snippets
* the documentation generator now supports system.runnableExamplesAraq2017-11-261-1/+1
|
* language change: 'generic' and 'atomic' are not keywords anymoreAndreas Rumpf2017-11-211-6/+5
|
* Add possibility to get language class to listings (#6705)Silvio2017-11-081-2/+2
| | | | Add the possibility to add class `lang<Name>` to code listings. Needed for restricting `run` to nim code (see https://github.com/nim-lang/nimforum/pull/111 )
* 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
|
char *) netatom, NetLast); /* init cursors */ cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr); cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing); cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur); modmap = XGetModifierMapping(dpy); for (i = 0; i < 8; i++) { for (j = 0; j < modmap->max_keypermod; j++) { if(modmap->modifiermap[i * modmap->max_keypermod + j] == XKeysymToKeycode(dpy, XK_Num_Lock)) numlockmask = (1 << i); } } XFree(modmap); wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask | EnterWindowMask | LeaveWindowMask; wa.cursor = cursor[CurNormal]; XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa); grabkeys(); initrregs(); for(ntags = 0; tags[ntags]; ntags++); seltag = emallocz(sizeof(Bool) * ntags); seltag[0] = True; /* style */ dc.bg = getcolor(BGCOLOR); dc.fg = getcolor(FGCOLOR); dc.border = getcolor(BORDERCOLOR); setfont(FONT); sx = sy = 0; sw = DisplayWidth(dpy, screen); sh = DisplayHeight(dpy, screen); mw = (sw * MASTERW) / 100; bx = by = 0; bw = sw; dc.h = bh = dc.font.height + 4; wa.override_redirect = 1; wa.background_pixmap = ParentRelative; wa.event_mask = ButtonPressMask | ExposureMask; barwin = XCreateWindow(dpy, root, bx, by, bw, bh, 0, DefaultDepth(dpy, screen), CopyFromParent, DefaultVisual(dpy, screen), CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); XDefineCursor(dpy, barwin, cursor[CurNormal]); XMapRaised(dpy, barwin); dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen)); dc.gc = XCreateGC(dpy, root, 0, 0); XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask); strcpy(stext, "dwm-"VERSION); } /* * Startup Error handler to check if another window manager * is already running. */ static int xerrorstart(Display *dsply, XErrorEvent *ee) { otherwm = True; return -1; } /* extern */ int getproto(Window w) { int i, format, protos, status; unsigned long extra, res; Atom *protocols, real; protos = 0; status = XGetWindowProperty(dpy, w, wmatom[WMProtocols], 0L, 20L, False, XA_ATOM, &real, &format, &res, &extra, (unsigned char **)&protocols); if(status != Success || protocols == 0) return protos; for(i = 0; i < res; i++) if(protocols[i] == wmatom[WMDelete]) protos |= PROTODELWIN; free(protocols); return protos; } void sendevent(Window w, Atom a, long value) { XEvent e; e.type = ClientMessage; e.xclient.window = w; e.xclient.message_type = a; e.xclient.format = 32; e.xclient.data.l[0] = value; e.xclient.data.l[1] = CurrentTime; XSendEvent(dpy, w, False, NoEventMask, &e); XSync(dpy, False); } void quit(Arg *arg) { readin = running = False; } /* * There's no way to check accesses to destroyed windows, thus those cases are * ignored (especially on UnmapNotify's). Other types of errors call Xlibs * default error handler, which calls exit(). */ int xerror(Display *dpy, XErrorEvent *ee) { if(ee->error_code == BadWindow || (ee->request_code == X_SetInputFocus && ee->error_code == BadMatch) || (ee->request_code == X_PolyText8 && ee->error_code == BadDrawable) || (ee->request_code == X_PolyFillRectangle && ee->error_code == BadDrawable) || (ee->request_code == X_PolySegment && ee->error_code == BadDrawable) || (ee->request_code == X_ConfigureWindow && ee->error_code == BadMatch) || (ee->request_code == X_GrabKey && ee->error_code == BadAccess)) return 0; fprintf(stderr, "dwm: fatal error: request code=%d, error code=%d\n", ee->request_code, ee->error_code); return xerrorxlib(dpy, ee); /* may call exit() */ } int main(int argc, char *argv[]) { int r, xfd; fd_set rd; if(argc == 2 && !strncmp("-v", argv[1], 3)) { fputs("dwm-"VERSION", (C)opyright MMVI Anselm R. Garbe\n", stdout); exit(EXIT_SUCCESS); } else if(argc != 1) eprint("usage: dwm [-v]\n"); dpy = XOpenDisplay(0); if(!dpy) eprint("dwm: cannot open display\n"); xfd = ConnectionNumber(dpy); screen = DefaultScreen(dpy); root = RootWindow(dpy, screen); otherwm = False; XSetErrorHandler(xerrorstart); /* this causes an error if some other window manager is running */ XSelectInput(dpy, root, SubstructureRedirectMask); XSync(dpy, False); if(otherwm) eprint("dwm: another window manager is already running\n"); XSync(dpy, False); XSetErrorHandler(NULL); xerrorxlib = XSetErrorHandler(xerror); XSync(dpy, False); setup(); drawstatus(); scan(); /* main event loop, also reads status text from stdin */ XSync(dpy, False); procevent(); readin = True; while(running) { FD_ZERO(&rd); if(readin) FD_SET(STDIN_FILENO, &rd); FD_SET(xfd, &rd); r = select(xfd + 1, &rd, NULL, NULL, NULL); if((r == -1) && (errno == EINTR)) continue; if(r > 0) { if(readin && FD_ISSET(STDIN_FILENO, &rd)) { readin = NULL != fgets(stext, sizeof(stext), stdin); if(readin) stext[strlen(stext) - 1] = 0; else strcpy(stext, "broken pipe"); drawstatus(); } } else if(r < 0) eprint("select failed\n"); procevent(); } cleanup(); XCloseDisplay(dpy); return 0; }