Commits

Gaurav Jain  committed b0c1dd0

Detect Objective-C snippets if there is a NSNumber object

  • Participants
  • Parent commits 91a6700
  • Branches objc

Comments (0)

Files changed (1)

File pygments/lexers/compiled.py

                 return 1.0
             elif '@"' in text: # strings
                 return 0.8
+            elif re.search('@[0-9]+', text):
+                return 0.7
             elif _oc_message.search(text):
                 return 0.8
             return 0