1. 23 May, 2017 2 commits
    • Eike Ziller's avatar
      SyntaxHighligher: Remove the need to specify format for spaces · f51fbd68
      Eike Ziller authored
      It has all means to know itself.
      
      Change-Id: I464c195c5ee47e5fc58414a280c166e4a332c588
      Reviewed-by: David Schulz's avatarDavid Schulz <david.schulz@qt.io>
      f51fbd68
    • Eike Ziller's avatar
      Simplify text format handling in syntax highlighters · cf57965e
      Eike Ziller authored
      Pass the mapping from custom enum to text style in form of a function,
      which then can use a switch which is checked by compilers, and
      avoids the need to lookup a different enum somewhere else to find
      out what the mapping actually is.
      That mapping is cached to keep performance as before.
      
      Also, most highlighters created an enum just for the purpose of mapping
      to text styles, basically creating duplicated subsets of text style like
      enums everywhere. Instead provide a default, identity mapping from text
      styles to text styles.
      
      Change-Id: I2ea1ca702b99e36b8742dfda510b1b2753f0a1c2
      Reviewed-by: David Schulz's avatarDavid Schulz <david.schulz@qt.io>
      cf57965e
  2. 30 Mar, 2016 1 commit
  3. 19 Jan, 2016 1 commit
  4. 02 Sep, 2015 1 commit
  5. 16 Jan, 2015 1 commit
  6. 13 Jan, 2015 1 commit
  7. 12 Jan, 2015 1 commit
  8. 07 Jan, 2015 1 commit
  9. 10 Nov, 2014 1 commit
  10. 09 Oct, 2014 1 commit
  11. 26 Sep, 2014 2 commits
  12. 27 Aug, 2014 1 commit
  13. 16 May, 2014 1 commit
  14. 08 May, 2014 1 commit
  15. 05 Feb, 2014 1 commit
  16. 04 Feb, 2014 1 commit
  17. 08 Jan, 2014 1 commit
  18. 27 Nov, 2013 1 commit
  19. 18 Sep, 2013 1 commit
  20. 09 Sep, 2013 1 commit
  21. 30 Aug, 2013 1 commit
  22. 26 Aug, 2013 1 commit
  23. 02 Apr, 2013 1 commit
  24. 29 Jan, 2013 1 commit
  25. 05 Oct, 2012 1 commit
  26. 19 Jul, 2012 1 commit
  27. 15 Feb, 2012 1 commit
  28. 26 Jan, 2012 1 commit
  29. 03 Nov, 2011 1 commit
  30. 26 Oct, 2011 1 commit
  31. 06 Jul, 2011 1 commit
  32. 13 Apr, 2011 1 commit
  33. 16 Feb, 2011 1 commit
  34. 12 Jan, 2011 2 commits
  35. 17 Dec, 2010 1 commit
  36. 07 Dec, 2010 1 commit
    • Leandro Melo's avatar
      Gen. highlighter: Improve performance (reg. exp.) · b5739e36
      Leandro Melo authored
      Cache matches of the RegExprRule to avoid unnecessary calls.
      This is essentially the same optimization existent in Kate.
      
      A colateral effect of this implementation is a mechanism to
      notify the rules when a progress (highlight of the current
      line) is finished.
      b5739e36
  37. 21 Oct, 2010 1 commit