1. 11 Dec, 2012 1 commit
  2. 21 Nov, 2012 1 commit
  3. 09 Sep, 2012 2 commits
  4. 08 Sep, 2012 1 commit
  5. 17 Jul, 2012 1 commit
  6. 22 Apr, 2012 1 commit
  7. 11 Apr, 2012 1 commit
  8. 16 Mar, 2012 1 commit
  9. 12 Mar, 2012 1 commit
  10. 02 Mar, 2012 1 commit
  11. 12 Feb, 2012 1 commit
  12. 07 Feb, 2012 2 commits
  13. 31 Jan, 2012 1 commit
  14. 18 Jan, 2012 1 commit
    • Alan Mackenzie's avatar
      Eliminate sluggishness and hangs in fontification of "semicolon deserts". · 9657183b
      Alan Mackenzie authored
      cc-engine.el (c-state-nonlit-pos-interval): change value 10000 -> 3000.
      (c-state-safe-place): Reformulate so it doesn't stack up an infinite
      number of wrong entries in c-state-nonlit-pos-cache.
      (c-determine-limit-get-base, c-determine-limit): New functions to
      determine backward search limits disregarding literals.
      (c-find-decl-spots): Amend commenting.
      (c-cheap-inside-bracelist-p): New function which detects "={".
      
      cc-fonts.el (c-make-font-lock-BO-decl-search-function): Give a limit to a
      backward search.
      (c-font-lock-declarations): Fix an occurrence of point being undefined.
      Check additionally for point being in a bracelist or near a macro
      invocation without a semicolon so as to avoid a fruitless time consuming
      search for a declarator.  Give a more precise search limit for
      declarators using the new c-determine-limit.
      9657183b
  15. 11 Jan, 2012 2 commits
  16. 05 Jan, 2012 1 commit
  17. 31 Dec, 2011 1 commit
  18. 30 Dec, 2011 1 commit
  19. 13 Dec, 2011 1 commit
    • Alan Mackenzie's avatar
      Large brace-block initialisation makes CC Mode slow: Fix. · 13d49cbb
      Alan Mackenzie authored
      Tidy up and accelerate c-in-literal, etc. by using the c-parse-state
      routines.  Limit backward searching in c-font-lock-enclosing.decl.
      
      cc-engine.el (c-state-pp-to-literal): Return the pp-state and literal
      type in addition to the limits.
      (c-state-safe-place): New defun, extracted from c-state-literal-at.
      (c-state-literal-at): Use the above new defun.
      (c-slow-in-literal, c-fast-in-literal): Removed.
      (c-in-literal, c-literal-limits): Amended to use c-state-pp-to-literal.
      
      cc-fonts.el (c-font-lock-enclosing-decls): Check for being in a literal.
      Add a limit for backward searching.
      
      cc-mode.el (awk-mode): Don't alias c-in-literal to c-slow-in-literal.
      13d49cbb
  20. 12 Dec, 2011 1 commit
  21. 05 Dec, 2011 1 commit
  22. 23 Nov, 2011 1 commit
  23. 20 Nov, 2011 2 commits
  24. 19 Nov, 2011 1 commit
  25. 18 Nov, 2011 1 commit
  26. 16 Nov, 2011 1 commit
  27. 15 Nov, 2011 3 commits
  28. 14 Nov, 2011 1 commit
  29. 28 Oct, 2011 1 commit
  30. 27 Oct, 2011 1 commit
    • Alan Mackenzie's avatar
      Amend to indent and fontify macros "which include their own semicolon" · 536610a4
      Alan Mackenzie authored
      correctly, using the "virtual semicolon" mechanism.
      
      cc-defs.el: Update "virtual semicolon" comments.
      
      cc-engine.el (c-crosses-statement-barrier-p): Recoded to scan one line at
      at time rather than having \n and \r explicitly in c-stmt-delim-chars
      (for some modes, e.g. AWK).
      (c-forward-label): Amend for virtual semicolons.
      (c-at-macro-vsemi-p, c-macro-vsemi-status-unknown-p): New functions
      
      cc-fonts.el (c-font-lock-declarations): Take account of the new C macros.
      
      cc-langs.el (c-at-vsemi-p-fn, c-vsemi-status-unknown-p-fn): move to
      earlier in the file.
      (c-opt-cpp-symbol, c-line-comment-start-regexp): New language variables.
      (c-opt-cpp-macro-define): Make into a full language variable.
      (c-stmt-delim-chars, c-stmt-delim-chars-with-comma): Special value for
      AWK Mode (including \n, \r) removed, no longer needed.
      
      cc-mode.el (c-mode, c++-mode, objc-mode): Invoke
      c-make-macro-with-semi-re.
      
      cc-vars.el (c-macro-with-semi-re, c-macro-names-with-semicolon): New
      variables.
      (c-make-macro-with-semi-re): New function
      
      cc-mode.texi (Indentation Commands): Mention "macros with semicolons".
      (Other Special Indentations): Add an xref to "Macros with ;".
      (Customizing Macros): Add stuff about syntax in macros.  Add an xref to
      "Macros with ;".
      (Macros with ;): New page.
      536610a4
  31. 22 Oct, 2011 1 commit
  32. 20 Aug, 2011 1 commit
    • Alan Mackenzie's avatar
      Resolve invalid use of a regexp in regexp-opt. · e3715033
      Alan Mackenzie authored
      cc-fonts.el (c-complex-decl-matchers): Add in special detection for a
      java annotation.
      
      cc-engine.el (c-forward-decl-or-cast-1): Add in special detection for a
      java annotation.
      
      cc-langs.el (c-prefix-spec-kwds-re): Remove the special handling for
      java.
      (c-modifier-kwds): Remove the regexp "@[A-za-z0-9]+".
      e3715033
  33. 16 Aug, 2011 1 commit
  34. 26 Jul, 2011 1 commit
    • Alan Mackenzie's avatar
      Fontify bitfield declarations properly. · b248a85d
      Alan Mackenzie authored
      cc-langs.el (c-has-bitfields): New lang variable.
      (c-symbol-chars): Now exported as a lang variable.
      (c-not-primitive-type-keywords): New lang variable.
      
      cc-fonts.el (c-font-lock-declarations): Jump over the QT keyword "more"
      to prevent "more slots: ...." being spuriously parsed as a bitfield
      declaraion.
      
      cc-engine.el (c-beginning-of-statement-1): Refactor and enhance to handle
      bitfield declarations.
      (c-punctuation-in): New function.
      (c-forward-decl-or-cast-1): Enhance CASE 3 to handle bitfield
      declarations properly.
      b248a85d