- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.3k
Transform languages to use the updated API #4018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Open
      
      
            DmitrySharabin
  wants to merge
  93
  commits into
  v2
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
transform-languages
  
      
      
   
  
    
  
  
  
 
  
      
    base: v2
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
                
     Open
            
            
          Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    
  This was referenced Oct 10, 2025 
      
60d1273    to
    e1bde69      
    Compare
  
    765068a    to
    29284d8      
    Compare
  
    2c4e6cd    to
    629ab52      
    Compare
  
    29284d8    to
    35d6181      
    Compare
  
    35c242a    to
    cd8f6d4      
    Compare
  
    35d6181    to
    538eaec      
    Compare
  
    cd8f6d4    to
    7717400      
    Compare
  
    538eaec    to
    3328581      
    Compare
  
    91c256a    to
    ea81aef      
    Compare
  
    d02b07f    to
    236f27c      
    Compare
  
    3328581    to
    f1faac8      
    Compare
  
    6a9d750    to
    236f27c      
    Compare
  
    40aec78    to
    014d325      
    Compare
  
    | ✅ Deploy Preview for dev-prismjs-com ready!
 To edit notification comments on pull requests, go to your Netlify project configuration. | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Still need to be transformed (though it looks like they can't fully adopt the new API):
base-clausetoken, a modified version of the C++ language—the one that is being defined—is used)javascript→markup)embeddedIn())php; the rest of the grammar is the inside grammar of thephptoken)latte, extends one of the required languages to use it as an inside grammar)class-nametoken, as the inside grammar of some tokens of the language we are defining)Even though those languages don't use the updated API, they can still be used as-is. All tests still pass.
This is part 3 of 3 in a stack made with GitButler:
simplifybranch #4019languagesfrom thesimplifybranch #4016